feat(ui): add missing nullptr check

This commit is contained in:
fallenoak 2025-10-08 21:35:56 -05:00 committed by GitHub
parent 60b1c2e8fd
commit 826881af5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,12 +15,12 @@ int32_t Script_RequestRealmList(lua_State* L) {
} }
int32_t Script_RealmListUpdateRate(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); lua_pushnumber(L, 4.0);
} } else {
else {
lua_pushnumber(L, 5.0); lua_pushnumber(L, 5.0);
} }
return 1; return 1;
} }