match LegoGameState::RegisterState()

This commit is contained in:
Ramen2X 2024-03-25 14:27:54 -04:00
parent 0ed9f37587
commit 6a0284d347

View File

@ -1064,9 +1064,7 @@ void LegoGameState::RegisterState(LegoState* p_state)
return;
}
if (m_stateArray[targetIndex]) {
delete m_stateArray[targetIndex];
}
delete m_stateArray[targetIndex];
m_stateArray[targetIndex] = p_state;
}