Merge pull request #11826 from endragor/fix-game-center-player-id

Fix returning Game Center player ID
This commit is contained in:
Rémi Verschelde 2017-10-09 12:23:48 +02:00 committed by GitHub
commit 7e05d249e6

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";