fix(glue): kill gotos in CGlueMgr::NetDisconnectHandler

This commit is contained in:
superp00t 2025-04-16 17:30:17 -04:00
parent f4bf67fe6b
commit 6bed0f5f83

View File

@ -266,12 +266,9 @@ int32_t CGlueMgr::NetDisconnectHandler(const void* eventData, void*) {
if (v11) {
ConsolePrintf("CGlueMgr::NetDisconnectHandler: Displaying script");
LABEL_14:
FrameScript_SignalEvent(2u, "%d", CGlueMgr::m_clientKickReason);
goto LABEL_15;
}
} else {
ConsolePrintf("CGlueMgr::NetDisconnectHandler: NOT displaying script");
WOWCS_OPS op;
const char* msg;
int32_t result;
@ -280,11 +277,12 @@ LABEL_14:
if (!complete || result) {
ClientServices::SelectRealm("");
goto LABEL_14;
}
FrameScript_SignalEvent(2u, "%d", CGlueMgr::m_clientKickReason);
} else {
FrameScript_SignalEvent(3u, "%s%s", "OKAY", msg);
}
}
LABEL_15:
ClientServices::LoginConnection()->Logoff();
return 1;
}