mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
match LegoGameState::RegisterState() (#729)
This commit is contained in:
parent
77b5f1338c
commit
43ce89224a
1 changed files with 1 additions and 3 deletions
|
@ -1064,9 +1064,7 @@ void LegoGameState::RegisterState(LegoState* p_state)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_stateArray[targetIndex]) {
|
|
||||||
delete m_stateArray[targetIndex];
|
delete m_stateArray[targetIndex];
|
||||||
}
|
|
||||||
m_stateArray[targetIndex] = p_state;
|
m_stateArray[targetIndex] = p_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue