mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Fix writing/reading of game state (#834)
* Fix writing/reading of game state * Match existing state serialization functions
This commit is contained in:
committed by
GitHub
parent
26f2dd1e5f
commit
c9db98c4c3
@@ -20,11 +20,9 @@ PoliceState::PoliceState()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005e990
|
||||
MxResult PoliceState::VTable0x1c(LegoFile* p_legoFile)
|
||||
MxResult PoliceState::Serialize(LegoFile* p_legoFile)
|
||||
{
|
||||
if (p_legoFile->IsWriteMode()) {
|
||||
p_legoFile->FUN_10006030(ClassName());
|
||||
}
|
||||
LegoState::Serialize(p_legoFile);
|
||||
|
||||
if (p_legoFile->IsReadMode()) {
|
||||
p_legoFile->Read(&m_policeScript, sizeof(m_policeScript));
|
||||
|
||||
Reference in New Issue
Block a user