Maintenance: Replace (*reinterpret_cast<ModeTooltip**>(0x013495BC)) with reinterpret_cast<ModeTooltip*>(g_modeMgr.gameMode) (0x013495

Batch #8873 by ragnarok-clanker: forced by an admin (1 lower score(s), 1 changed function(s)); checked with 1 compiled unit(s).
This commit is contained in:
ragnarok-clanker 2026-10-31 22:08:34 +00:00
commit 2baabc0d92

View file

@ -25,6 +25,7 @@
#include "UI/Window/UINewSelectCharWnd.h"
#include "Utility/StackAlloc.h"
#include "Utility/Text/FormatString.h"
#include "Client/Mode/ModeMgr.h"
#include <algorithm>
#include <cctype>
@ -150,7 +151,7 @@ void UIChangeMaterialWnd::Slot28(int x, int y) {
this->ToScreen(x, y);
const int itemId = std::atoi(item->itemId.c_str());
const std::string name = ItemDisplayName(itemId);
(*reinterpret_cast<ModeTooltip**>(0x013495BC))->Show(name.c_str(), x + 5, y - 5, -1, 0, 1);
reinterpret_cast<ModeTooltip*>(g_modeMgr.gameMode)->Show(name.c_str(), x + 5, y - 5, -1, 0, 1);
}
// OFFSET: 0x005E2840