mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- fixed statistics reader for savegames.
This commit is contained in:
parent
ce9b71a31f
commit
c253cd899c
1 changed files with 2 additions and 1 deletions
|
@ -566,9 +566,10 @@ bool ReadStatistics()
|
||||||
|
|
||||||
int numlevels = sjson_child_count(levels);
|
int numlevels = sjson_child_count(levels);
|
||||||
LevelData.Resize(numlevels);
|
LevelData.Resize(numlevels);
|
||||||
|
int i = 0;
|
||||||
for (auto& lev : LevelData)
|
for (auto& lev : LevelData)
|
||||||
{
|
{
|
||||||
ReadOneLevel(levels, lev);
|
ReadOneLevel(sjson_find_element(levels, i++), lev);
|
||||||
}
|
}
|
||||||
sjson_destroy_context(ctx);
|
sjson_destroy_context(ctx);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue