Skip to content

Commit

Permalink
- fixed issue with restoring SO sprite array.
Browse files Browse the repository at this point in the history
This array has -1 for empty entries so it cannot be saved partially.
  • Loading branch information
coelckers committed Apr 21, 2021
1 parent c3e5cf3 commit a4f5a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/sw/src/save.cpp
Expand Up @@ -662,7 +662,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, SECTOR_OBJECTstruc
.Array("sector", w.sector, def->sector, w.num_sectors) // is this really different from sectp?
.Array("zorig_floor", w.zorig_floor, def->zorig_floor, w.num_sectors)
.Array("zorig_ceiling", w.zorig_ceiling, def->zorig_ceiling, w.num_sectors)
.Array("sp_num", w.sp_num, def->sp_num, sp_cnt + 1)
.Array("sp_num", w.sp_num, def->sp_num, countof(w.sp_num))
.Array("xorig", w.xorig, def->xorig, w.num_walls)
.Array("yorig", w.yorig, def->yorig, w.num_walls)
("controller", w.controller, def->controller)
Expand Down

0 comments on commit a4f5a32

Please sign in to comment.