fix(glue): use correct comparison in GetRealmInfo script handler

This commit is contained in:
fallenoak 2023-02-18 15:02:16 -06:00
parent 6811eb49d6
commit a3b285497a
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D

View file

@ -68,7 +68,7 @@ int32_t Script_GetRealmInfo(lua_State* L) {
: nullptr; : nullptr;
int32_t realmIndex = lua_tonumber(L, 2) - 1; int32_t realmIndex = lua_tonumber(L, 2) - 1;
if (realmCategory && realmIndex > realmCategory->uint14) { if (realmCategory && realmIndex < realmCategory->uint14) {
realmInfo = ClientServices::GetRealmInfoByIndex(realmCategory->m_realms[realmIndex]); realmInfo = ClientServices::GetRealmInfoByIndex(realmCategory->m_realms[realmIndex]);
} }
} else { } else {