diff --git a/Source/UI/Window/UIFrameWnd.cpp b/Source/UI/Window/UIFrameWnd.cpp index d181a51c..a4769536 100644 --- a/Source/UI/Window/UIFrameWnd.cpp +++ b/Source/UI/Window/UIFrameWnd.cpp @@ -690,12 +690,12 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: } else if (talkType == 51) { talkType = 52; } - static_cast(g_charViewMode)->SendMsg(42, talkType, reinterpret_cast(parts), 0, 0); + g_modeMgr.gameMode->SendMsg(42, talkType, reinterpret_cast(parts), 0, 0); } } else { g_windowMgr.unknown_04DC = buffer; const std::string name = this->memberList->lines[this->memberList->selected]; - static_cast(g_charViewMode)->SendMsg(11, reinterpret_cast(name.c_str()), 0, 0, 0); + g_modeMgr.gameMode->SendMsg(11, reinterpret_cast(name.c_str()), 0, 0, 0); } this->edit->PushHistory(); @@ -704,7 +704,7 @@ int UIChatRoomWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std:: return 0; } case 201: - static_cast(g_charViewMode)->SendMsg(48, 0, 0, 0, 0); + g_modeMgr.gameMode->SendMsg(48, 0, 0, 0, 0); return 0; case 347: g_windowMgr.SelectWhisperName(reinterpret_cast(b));