mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
chore(ClientServices): add assertion in Connection method
This commit is contained in:
parent
56aad5b60f
commit
fd71e871e6
@ -155,8 +155,7 @@ void ClientServices::ConnectToSelectedServer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClientConnection* ClientServices::Connection() {
|
ClientConnection* ClientServices::Connection() {
|
||||||
// TODO assertion?
|
STORM_ASSERT(ClientServices::s_currentConnection);
|
||||||
|
|
||||||
return 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) {
|
void ClientServices::SetMessageHandler(NETMESSAGE msgId, MESSAGE_HANDLER handler, void* param) {
|
||||||
STORM_ASSERT(handler);
|
STORM_ASSERT(handler);
|
||||||
STORM_ASSERT(ClientServices::s_currentConnection);
|
ClientServices::Connection()->SetMessageHandler(msgId, handler, param);
|
||||||
|
|
||||||
ClientServices::s_currentConnection->SetMessageHandler(msgId, handler, param);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t ClientServices::SetSelectedRealmInfo(int32_t a1) {
|
int32_t ClientServices::SetSelectedRealmInfo(int32_t a1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user