diff --git a/Source/Contents/CashEmotionMgr.cpp b/Source/Contents/CashEmotionMgr.cpp index 0870e4a8..0c6b628c 100644 --- a/Source/Contents/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotionMgr.cpp @@ -3831,7 +3831,9 @@ void UICashEmotionSprBtn::Slot28(int x, int y) { int screenY = -20; this->ToScreen(screenX, screenY); - static_cast(g_charViewMode)->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, false); + if (CMode* mode = g_modeMgr.gameMode) { + mode->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, false); + } } if (!this->m_disabled) {