mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
feat(ui): add missing nullptr check
This commit is contained in:
parent
60b1c2e8fd
commit
826881af5f
@ -15,12 +15,12 @@ int32_t Script_RequestRealmList(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_RealmListUpdateRate(lua_State* L) {
|
||||
if (ClientServices::LoginConnection()->GetLoginServerType() == 1) {
|
||||
if (ClientServices::LoginConnection() && ClientServices::LoginConnection()->GetLoginServerType() == 1) {
|
||||
lua_pushnumber(L, 4.0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
lua_pushnumber(L, 5.0);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user