Use the TRY_FREE_AND_SET_NULL macro where appropriate
This commit is contained in:
@@ -101,8 +101,7 @@ void FreeRotatingTilePuzzle(void)
|
||||
{
|
||||
u8 id;
|
||||
|
||||
if (sRotatingTilePuzzle != NULL)
|
||||
FREE_AND_SET_NULL(sRotatingTilePuzzle);
|
||||
TRY_FREE_AND_SET_NULL(sRotatingTilePuzzle);
|
||||
|
||||
id = GetObjectEventIdByLocalIdAndMap(OBJ_EVENT_ID_PLAYER, 0, 0);
|
||||
ObjectEventClearHeldMovementIfFinished(&gObjectEvents[id]);
|
||||
|
||||
Reference in New Issue
Block a user