mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-25 07:03:34 +03:00
fix(glue): use correct comparison in GetRealmInfo script handler
This commit is contained in:
1 file changed
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user