Fix returning Game Center player ID

This commit is contained in:
Ruslan Mustakov 2017-10-04 17:18:09 +07:00
parent 6dc1025e63
commit c8191d04c9

View file

@ -89,7 +89,7 @@ Error GameCenter::connect() {
ret["type"] = "authentication";
if (player.isAuthenticated) {
ret["result"] = "ok";
ret["player_id"] = player.playerID;
ret["player_id"] = [player.playerID UTF8String];
GameCenter::get_singleton()->connected = true;
} else {
ret["result"] = "error";