Explorar o código

update GKScore init function

sersoong %!s(int64=8) %!d(string=hai) anos
pai
achega
5ed8826dd0
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

@@ -109,7 +109,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);