Do not crash when pressing hidden button on Gp results screen. Fixes #2734

This commit is contained in:
auria.mg
2017-01-15 19:32:15 -05:00
parent 02d3e7a371
commit b758e2eb62

View File

@@ -373,8 +373,10 @@ void RaceResultGUI::eventCallback(GUIEngine::Widget* widget,
MessageDialog::MESSAGE_DIALOG_CONFIRM, this, false);
}
else if (!getWidget(name.c_str())->isVisible())
Log::fatal("RaceResultGUI", "Incorrect event '%s' when things are unlocked.",
{
Log::warn("RaceResultGUI", "Incorrect event '%s' when things are unlocked.",
name.c_str());
}
return;
}