mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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);
|
||||
LevelData.Resize(numlevels);
|
||||
int i = 0;
|
||||
for (auto& lev : LevelData)
|
||||
{
|
||||
ReadOneLevel(levels, lev);
|
||||
ReadOneLevel(sjson_find_element(levels, i++), lev);
|
||||
}
|
||||
sjson_destroy_context(ctx);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue