Trophy display bug fix.
This commit is contained in:
parent
c0bcfca334
commit
cf5939dd3c
|
@ -68,12 +68,12 @@ void initTrophies(void)
|
|||
|
||||
page = 0;
|
||||
|
||||
maxPages = STAT_TIME_PLAYED;
|
||||
loadTrophyData();
|
||||
|
||||
maxPages = numTrophies;
|
||||
maxPages /= TROPHIES_PER_PAGE;
|
||||
maxPages = ceil(maxPages);
|
||||
|
||||
loadTrophyData();
|
||||
|
||||
resetAlert();
|
||||
}
|
||||
|
||||
|
@ -389,6 +389,8 @@ static void loadTrophyData(void)
|
|||
t->stat = lookup(cJSON_GetObjectItem(node, "stat")->valuestring);
|
||||
t->statValue = cJSON_GetObjectItem(node, "statValue")->valueint;
|
||||
}
|
||||
|
||||
numTrophies++;
|
||||
}
|
||||
|
||||
cJSON_Delete(root);
|
||||
|
|
Loading…
Reference in New Issue