Maintenance: Forced (maintainer). gl_24792 'g_charViewMode' (0x013495BC) is not a separate global: it is g_modeMgr.gameMode (g_modeMg

Batch #13844 by ragnarok-clanker: forced by an admin (0 lower score(s), 0 changed function(s)); checked with 53 compiled unit(s), including every includer of Source/UI/Window/UINewSelectCharWnd.h.
This commit is contained in:
ragnarok-clanker 2026-11-06 23:23:11 +00:00
commit d9c7622531
15 changed files with 55 additions and 58 deletions

View file

@ -187,7 +187,7 @@ int UIWindowMgr::Confirm(
int response = 184;
if (g_modalImmediate == 0) {
CMode* pump = static_cast<CMode*>(g_charViewMode);
CMode* pump = g_modeMgr.gameMode;
for (;;) {
if (this->activeWindowId != 0) {
@ -220,7 +220,7 @@ int UIWindowMgr::Confirm(
if (pump) {
pump->Update();
pump = static_cast<CMode*>(g_charViewMode);
pump = g_modeMgr.gameMode;
}
if (g_session.GetOption(20) > 0) {