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:
parent
8c4ace6c17
commit
ec97bc8316
@ -1255,10 +1255,7 @@ namespace GUIEngine
|
|||||||
if (rg != NULL) rg->renderGlobal(elapsed_time);
|
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())
|
if (gamestate != GAME && !gui_messages.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user