diff --git a/Source/UI/Party/UIApplyForPartyWnd.cpp b/Source/UI/Party/UIApplyForPartyWnd.cpp index 1db2b811..3b396865 100644 --- a/Source/UI/Party/UIApplyForPartyWnd.cpp +++ b/Source/UI/Party/UIApplyForPartyWnd.cpp @@ -19,6 +19,7 @@ #include "UI/Text/UIStaticText.h" #include "UI/Window/WindowManagerWindows.h" #include "Client/Mode/CMode.h" +#include "Client/Mode/ModeMgr.h" #include @@ -148,7 +149,7 @@ void UIApplyForPartyWnd::Slot28(int x, int y) { int screenX = positions[index]; int screenY = 75; this->ToScreen(screenX, screenY); - static_cast(g_charViewMode)->ShowTooltip(label, screenX, screenY, -1, false, true); + g_modeMgr.gameMode->ShowTooltip(label, screenX, screenY, -1, false, true); } break;