From c8191d04c91f9d760b8e5c8acd3700548acbfb2a Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Wed, 4 Oct 2017 17:18:09 +0700 Subject: [PATCH] Fix returning Game Center player ID --- platform/iphone/game_center.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm index 821ef2a3ab3..3955b9f0aa7 100644 --- a/platform/iphone/game_center.mm +++ b/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";