Explorar o código

Fix returning Game Center player ID

Ruslan Mustakov %!s(int64=8) %!d(string=hai) anos
pai
achega
c8191d04c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/iphone/game_center.mm

+ 1 - 1
platform/iphone/game_center.mm

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