summaryrefslogtreecommitdiff
path: root/platform/iphone/game_center.mm
diff options
context:
space:
mode:
authorsersoong <sersoong@gmail.com>2017-10-20 17:44:54 +0800
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-20 13:01:07 +0200
commit771b742047912b4abee93866cc5c68332e262230 (patch)
treeb56d2ed47559410c434fa43978416cf76d7a13c2 /platform/iphone/game_center.mm
parent2229056fcc2e5a88c9866d0234133fc10f5f2654 (diff)
update GKScore init function
(cherry picked from commit 5ed8826dd07eab83b6f6b6b7d3af602926a54ae6)
Diffstat (limited to 'platform/iphone/game_center.mm')
-rw-r--r--platform/iphone/game_center.mm2
1 files changed, 1 insertions, 1 deletions
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);