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