diff --git a/Source/UI/Item/UIParaItemShopWnd.cpp b/Source/UI/Item/UIParaItemShopWnd.cpp index 7e67e9c0..73882898 100644 --- a/Source/UI/Item/UIParaItemShopWnd.cpp +++ b/Source/UI/Item/UIParaItemShopWnd.cpp @@ -589,7 +589,7 @@ int UIParaResultWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std switch (message) { case 6: { this->RecordResponse(static_cast(a), b, c, d); - CMode* mode = static_cast(g_charViewMode); + CMode* mode = g_modeMgr.gameMode; if (a == 184) { mode->SendMsg(292, 0, 0, 0, 0); mode->SendMsg(40, 0, 0, 0, 0);