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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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