mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-27 18:21:15 +00:00
match LegoGameState::RegisterState()
This commit is contained in:
parent
0ed9f37587
commit
6a0284d347
@ -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 New Issue
Block a user