Use WINDOW_NONE constant
This commit is contained in:
+1
-1
@@ -1168,7 +1168,7 @@ static bool32 LoadMatchCallWindowGfx(u8 taskId)
|
||||
{
|
||||
s16 *taskData = gTasks[taskId].data;
|
||||
taskData[2] = AddWindow(&sMatchCallTextWindow);
|
||||
if (taskData[2] == 0xFF)
|
||||
if (taskData[2] == WINDOW_NONE)
|
||||
{
|
||||
DestroyTask(taskId);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user