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:
parent
15b8b48c72
commit
2baabc0d92
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue