Skip to content

Commit

Permalink
fix(zc): save file corruption from overlooked fields
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Sep 2, 2023
1 parent 2eccded commit 2bb0178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zc/saves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,10 @@ static int32_t read_saves(ReadMode read_mode, std::string filename, std::vector<
}
if(section_version >= 34)
{
if(!p_igetw(&game.forced_xwpn,f))
return 114;
if(!p_igetw(&game.forced_ywpn,f))
return 115;
if(!p_igetw(&game.xwpn,f))
return 111;
if(!p_igetw(&game.ywpn,f))
Expand Down

0 comments on commit 2bb0178

Please sign in to comment.