Always call drawTooltips.

If tooltips list is empty, then it does nothing and at least the list is cleared each frame.

It fixes a crash for #3957
This commit is contained in:
Deve 2019-06-13 19:21:31 +02:00
parent 8c4ace6c17
commit ec97bc8316

View File

@ -1255,10 +1255,7 @@ namespace GUIEngine
if (rg != NULL) rg->renderGlobal(elapsed_time);
}
if (gamestate == MENU || gamestate == INGAME_MENU)
{
g_skin->drawTooltips();
}
g_skin->drawTooltips();
if (gamestate != GAME && !gui_messages.empty())
{