diff --git a/Source/UI/Text/UIStaticText.cpp b/Source/UI/Text/UIStaticText.cpp index c39cf4ac..8782b86d 100644 --- a/Source/UI/Text/UIStaticText.cpp +++ b/Source/UI/Text/UIStaticText.cpp @@ -4,6 +4,7 @@ #include "UI/Buttons/UIBmpTextButton.h" #include "UI/Text/UIStaticText.h" #include "Client/Mode/CMode.h" +#include "Client/Mode/ModeMgr.h" #include @@ -198,7 +199,7 @@ void UIStaticText::Slot28(int, int) { y = (y + node->geometry.y); } - static_cast(g_charViewMode)->ShowTooltip(this->tooltip.c_str(), x, y, -1, false, true); + g_modeMgr.gameMode->ShowTooltip(this->tooltip.c_str(), x, y, -1, false, true); } // OFFSET: 0x0085FAB0