Fix HideMapNamePopUpWindow possible overflow
This commit is contained in:
1 parent
5be69b2713
commit
e87a69a5e7
2 files changed
+7
-7
No files matched your search
@@ -317,8 +317,13 @@ void HideMapNamePopUpWindow(void)
|
||||
{
|
||||
if (FuncIsActiveTask(Task_MapNamePopUpWindow))
|
||||
{
|
||||
ClearStdWindowAndFrame(GetMapNamePopUpWindowId(), TRUE);
|
||||
RemoveMapNamePopUpWindow();
|
||||
#ifdef UBFIX
|
||||
if (GetMapNamePopUpWindowId() != WINDOW_NONE)
|
||||
#endif // UBFIX
|
||||
{
|
||||
ClearStdWindowAndFrame(GetMapNamePopUpWindowId(), TRUE);
|
||||
RemoveMapNamePopUpWindow();
|
||||
}
|
||||
SetGpuReg_ForcedBlank(REG_OFFSET_BG0VOFS, 0);
|
||||
DestroyTask(sPopupTaskId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user