chore(ClientServices): add assertion in Connection method

This commit is contained in:
Tristan Cormier 2025-10-08 10:51:39 -04:00
parent 56aad5b60f
commit fd71e871e6

View File

@ -155,8 +155,7 @@ void ClientServices::ConnectToSelectedServer() {
}
ClientConnection* ClientServices::Connection() {
// TODO assertion?
STORM_ASSERT(ClientServices::s_currentConnection);
return ClientServices::s_currentConnection;
}
@ -390,9 +389,7 @@ void ClientServices::SetCharacterInfo(const CHARACTER_INFO* info) {
void ClientServices::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param) {
STORM_ASSERT(handler);
STORM_ASSERT(ClientServices::s_currentConnection);
ClientServices::s_currentConnection->SetMessageHandler(msgId, handler, param);
ClientServices::Connection()->SetMessageHandler(msgId, handler, param);
}
int32_t ClientServices::SetSelectedRealmInfo(int32_t a1) {