mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-31 12:11:15 +00:00
Spacing
This commit is contained in:
parent
51c5956e41
commit
8574357c0b
@ -250,23 +250,29 @@ MxResult LegoGameState::DeleteState()
|
|||||||
{
|
{
|
||||||
MxS16 stateCount = m_stateCount;
|
MxS16 stateCount = m_stateCount;
|
||||||
LegoState** stateArray = m_stateArray;
|
LegoState** stateArray = m_stateArray;
|
||||||
|
|
||||||
m_stateCount = 0;
|
m_stateCount = 0;
|
||||||
m_stateArray = NULL;
|
m_stateArray = NULL;
|
||||||
|
|
||||||
if (stateCount > 0) {
|
if (stateCount > 0) {
|
||||||
MxS32 count = stateCount;
|
MxS32 count = stateCount;
|
||||||
LegoState** iter = stateArray;
|
LegoState** it = stateArray;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (!(*iter)->SetFlag() && (*iter)->VTable0x14()) {
|
if (!(*it)->SetFlag() && (*it)->VTable0x14()) {
|
||||||
delete *iter;
|
delete *it;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
RegisterState(*iter);
|
RegisterState(*it);
|
||||||
*iter = NULL;
|
*it = NULL;
|
||||||
}
|
}
|
||||||
iter++;
|
|
||||||
|
it++;
|
||||||
} while (--count);
|
} while (--count);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete[] stateArray;
|
delete[] stateArray;
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user