implement/match InfoCenter::~InfoCenter() (#457)

This commit is contained in:
Ramen2X
2024-01-18 21:00:55 -05:00
committed by GitHub
parent 61dd687f53
commit 578e48ce52
3 changed files with 28 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ MxResult LegoGameState::Save(MxULong p_slot)
MxResult result;
InfocenterState* infocenterState = (InfocenterState*) GameState()->GetState("InfocenterState");
if (!infocenterState || infocenterState->GetInfocenterBufferElement(0) == 0)
if (!infocenterState || infocenterState->GetInfocenterBufferElement(0) == NULL)
result = SUCCESS;
else {
result = FAILURE;