From 2baabc0d92686562bd2dfd6c971cdc75b110fa90 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 22:08:34 +0000 Subject: [PATCH] Maintenance: Replace (*reinterpret_cast(0x013495BC)) with reinterpret_cast(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). --- Source/UI/UIChangeMaterialWnd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/UI/UIChangeMaterialWnd.cpp b/Source/UI/UIChangeMaterialWnd.cpp index acfc9e2a..6d9c83a7 100644 --- a/Source/UI/UIChangeMaterialWnd.cpp +++ b/Source/UI/UIChangeMaterialWnd.cpp @@ -25,6 +25,7 @@ #include "UI/Window/UINewSelectCharWnd.h" #include "Utility/StackAlloc.h" #include "Utility/Text/FormatString.h" +#include "Client/Mode/ModeMgr.h" #include #include @@ -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(0x013495BC))->Show(name.c_str(), x + 5, y - 5, -1, 0, 1); + reinterpret_cast(g_modeMgr.gameMode)->Show(name.c_str(), x + 5, y - 5, -1, 0, 1); } // OFFSET: 0x005E2840