From 771b742047912b4abee93866cc5c68332e262230 Mon Sep 17 00:00:00 2001 From: sersoong Date: Fri, 20 Oct 2017 17:44:54 +0800 Subject: update GKScore init function (cherry picked from commit 5ed8826dd07eab83b6f6b6b7d3af602926a54ae6) --- platform/iphone/game_center.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm index 3955b9f0aa..768b55d078 100644 --- a/platform/iphone/game_center.mm +++ b/platform/iphone/game_center.mm @@ -117,7 +117,7 @@ Error GameCenter::post_score(Variant p_score) { String category = params["category"]; NSString *cat_str = [[[NSString alloc] initWithUTF8String:category.utf8().get_data()] autorelease]; - GKScore *reporter = [[[GKScore alloc] initWithCategory:cat_str] autorelease]; + GKScore *reporter = [[[GKScore alloc] initWithLeaderboardIdentifier:cat_str] autorelease]; reporter.value = score; ERR_FAIL_COND_V([GKScore respondsToSelector:@selector(reportScores)], ERR_UNAVAILABLE); -- cgit v1.2.3