We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcb16b commit 5e2f75aCopy full SHA for 5e2f75a
src/guiengine/event_handler.cpp
@@ -852,7 +852,9 @@ EventPropagation EventHandler::onGUIEvent(const SEvent& event)
852
if (w == NULL) break;
853
if (!w->isActivated())
854
{
855
- GUIEngine::getCurrentScreen()->onDisabledItemClicked(w->m_properties[PROP_ID].c_str());
+ // Some dialog in overworld could have deactivated widget, and no current screen in overworld
856
+ if (GUIEngine::getCurrentScreen())
857
+ GUIEngine::getCurrentScreen()->onDisabledItemClicked(w->m_properties[PROP_ID].c_str());
858
return EVENT_BLOCK;
859
}
860
0 commit comments