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:
smallmodel 2024-09-08 15:06:43 +02:00
parent 86ddec3f76
commit 3834f51d74
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -291,7 +291,7 @@ UIWidget *Menu::GetNamedWidget
}
}
return pWidget;
return NULL;
}
void Menu::Update