Fix a plethora of bugs and crashes when loading new savegames; loading now works, though with a few glitches still

This commit is contained in:
2014-04-20 17:43:16 -04:00
parent 3a0f1ad7f5
commit 4cf1c5a8f6
16 changed files with 75 additions and 62 deletions

View File

@@ -1179,7 +1179,7 @@ bool load_party_v2(fs::path file_to_load, bool town_restore, bool in_scen, bool
return false;
}
uint16_t magic;
fin.read((char*)magic, 2);
fin.read((char*)&magic, 2);
fin.read((char*)&univ.party.setup, sizeof(cParty::setup));
if(magic == 0x0E0B) // should be 0x0B0E!
for(auto& i : univ.party.setup)