match LegoGameState::RegisterState() (#729)

This commit is contained in:
Ramen2X
2024-03-25 14:34:28 -04:00
committed by GitHub
parent 77b5f1338c
commit 43ce89224a

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;
}