mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Rename _countof to sizeOfArray (#921)
This commit is contained in:

committed by
GitHub

parent
95ed90aacb
commit
e32e06321a
@@ -251,7 +251,7 @@ MxResult LegoGameState::Save(MxULong p_slot)
|
||||
Write(&fileStorage, (MxU16) m_currentAct);
|
||||
Write(&fileStorage, m_actorId);
|
||||
|
||||
for (i = 0; i < _countof(g_colorSaveData); i++) {
|
||||
for (i = 0; i < sizeOfArray(g_colorSaveData); i++) {
|
||||
if (WriteVariable(&fileStorage, variableTable, g_colorSaveData[i].m_targetName) == FAILURE) {
|
||||
goto done;
|
||||
}
|
||||
@@ -997,7 +997,7 @@ void LegoGameState::SetColors()
|
||||
{
|
||||
MxVariableTable* variableTable = VariableTable();
|
||||
|
||||
for (MxS32 i = 0; i < _countof(g_colorSaveData); i++) {
|
||||
for (MxS32 i = 0; i < sizeOfArray(g_colorSaveData); i++) {
|
||||
variableTable->SetVariable(g_colorSaveData[i].m_targetName, g_colorSaveData[i].m_colorName);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user