parent
2229056fcc
commit
771b742047
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ Error GameCenter::post_score(Variant p_score) {
|
||||||
String category = params["category"];
|
String category = params["category"];
|
||||||
|
|
||||||
NSString *cat_str = [[[NSString alloc] initWithUTF8String:category.utf8().get_data()] autorelease];
|
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;
|
reporter.value = score;
|
||||||
|
|
||||||
ERR_FAIL_COND_V([GKScore respondsToSelector:@selector(reportScores)], ERR_UNAVAILABLE);
|
ERR_FAIL_COND_V([GKScore respondsToSelector:@selector(reportScores)], ERR_UNAVAILABLE);
|
||||||
|
|
Loading…
Reference in a new issue