mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-08 03:27:58 +03:00
Fix GetNamedWidget() always returning the last valid widget
This is problematic when doing different logic when a widget doesn't exist, for example when loading a map, if the continue button doesn't exist then the game should continue automatically
This commit is contained in:
parent
86ddec3f76
commit
3834f51d74
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ UIWidget *Menu::GetNamedWidget
|
|||
}
|
||||
}
|
||||
|
||||
return pWidget;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void Menu::Update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue