diff --git a/LEGO1/lego/legoomni/src/common/legogamestate.cpp b/LEGO1/lego/legoomni/src/common/legogamestate.cpp index 53de6fd4..e7e3d6c5 100644 --- a/LEGO1/lego/legoomni/src/common/legogamestate.cpp +++ b/LEGO1/lego/legoomni/src/common/legogamestate.cpp @@ -199,10 +199,10 @@ MxResult LegoGameState::Save(MxULong p_slot) goto done; } - WriteScalar(&fileStream, 0x1000c); - WriteScalar(&fileStream, m_unk0x24); - WriteScalar(&fileStream, (MxU16) m_currentAct); - WriteScalar(&fileStream, m_actorId); + Write(&fileStream, 0x1000c); + Write(&fileStream, m_unk0x24); + Write(&fileStream, (MxU16) m_currentAct); + Write(&fileStream, m_actorId); for (i = 0; i < _countof(g_colorSaveData); i++) { if (WriteVariable(&fileStream, variableTable, g_colorSaveData[i].m_targetName) == FAILURE) { @@ -228,7 +228,7 @@ MxResult LegoGameState::Save(MxULong p_slot) } } - WriteScalar(&fileStream, count); + Write(&fileStream, count); for (j = 0; j < m_stateCount; j++) { if (m_stateArray[j]->VTable0x14()) { @@ -237,7 +237,7 @@ MxResult LegoGameState::Save(MxULong p_slot) } area = m_unk0x42c; - WriteScalar(&fileStream, (MxU16) area); + Write(&fileStream, (MxU16) area); SerializeScoreHistory(2); m_isDirty = FALSE; diff --git a/LEGO1/lego/sources/misc/legostorage.h b/LEGO1/lego/sources/misc/legostorage.h index 2b542e44..daa3153d 100644 --- a/LEGO1/lego/sources/misc/legostorage.h +++ b/LEGO1/lego/sources/misc/legostorage.h @@ -47,7 +47,7 @@ inline void Read(LegoStorage* p_storage, T* p_variable, LegoU32 p_size = sizeof( } template -inline void WriteScalar(LegoStorage* p_storage, T p_variable) +inline void Write(LegoStorage* p_storage, T p_variable) { p_storage->Write(&p_variable, sizeof(p_variable)); }