diff --git a/LEGO1/legogamestate.cpp b/LEGO1/legogamestate.cpp index 378241b3..938d89ea 100644 --- a/LEGO1/legogamestate.cpp +++ b/LEGO1/legogamestate.cpp @@ -271,18 +271,18 @@ void FUN_1003ccf0(MxU16*, LegoFileStream&) } // FUNCTION: LEGO1 0x1003cdd0 -void LegoGameState::SerializeScoreHistory(MxS16 m_flags) +void LegoGameState::SerializeScoreHistory(MxS16 p_flags) { LegoFileStream stream; MxString savePath(m_savePath); savePath += "\\"; savePath += g_historyGSI; - if (m_flags == LegoStream::WriteBit) { + if (p_flags == LegoStream::WriteBit) { WriteScoreHistory(&m_unk0xa6); } - if (stream.Open(savePath.GetData(), (LegoStream::OpenFlags) m_flags) == SUCCESS) { + if (stream.Open(savePath.GetData(), (LegoStream::OpenFlags) p_flags) == SUCCESS) { FUN_1003ccf0(&m_unk0xa6, stream); } } diff --git a/LEGO1/legogamestate.h b/LEGO1/legogamestate.h index 5465ec52..bdc84eab 100644 --- a/LEGO1/legogamestate.h +++ b/LEGO1/legogamestate.h @@ -24,7 +24,7 @@ class LegoGameState { __declspec(dllexport) MxResult Load(MxULong); __declspec(dllexport) MxResult Save(MxULong); __declspec(dllexport) void SerializePlayersInfo(MxS16); - __declspec(dllexport) void SerializeScoreHistory(MxS16 m_flags); + __declspec(dllexport) void SerializeScoreHistory(MxS16 p_flags); __declspec(dllexport) void SetSavePath(char*); LegoState* GetState(COMPAT_CONST char* p_stateName);