From a3b285497a0c09cb6ca0ccad4e88446123c272ff Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 18 Feb 2023 15:02:16 -0600 Subject: [PATCH] fix(glue): use correct comparison in GetRealmInfo script handler --- src/ui/ScriptFunctionsRealmList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/ScriptFunctionsRealmList.cpp b/src/ui/ScriptFunctionsRealmList.cpp index 2010861..b6364cd 100644 --- a/src/ui/ScriptFunctionsRealmList.cpp +++ b/src/ui/ScriptFunctionsRealmList.cpp @@ -68,7 +68,7 @@ int32_t Script_GetRealmInfo(lua_State* L) { : nullptr; 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]); } } else {