- fixed statistics reader for savegames.

This commit is contained in:
Christoph Oelckers 2020-02-18 21:23:28 +01:00
parent ce9b71a31f
commit c253cd899c

View file

@ -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;