From 38020d49df6e30cc34030aabd0eb249eed0d9490 Mon Sep 17 00:00:00 2001 From: urnati Date: Thu, 15 Aug 2024 20:17:32 -0400 Subject: [PATCH] - Gold - Remove getn deprecated a while ago for IDE --- TitanGold/TitanGold.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TitanGold/TitanGold.lua b/TitanGold/TitanGold.lua index 7b56755..1785e80 100644 --- a/TitanGold/TitanGold.lua +++ b/TitanGold/TitanGold.lua @@ -251,7 +251,7 @@ local function ShowMenuButtons(faction, level) end GoldSorted = SortByIndex(GoldSorted) - for i = 1, getn(GoldSorted) do + for i = 1, GoldSorted do local index = GoldSorted[i] local character, charserver, char_faction = GetIndexInfo(index) if character and (char_faction == faction) then @@ -287,7 +287,7 @@ local function DeleteMenuButtons(faction, level) end GoldSorted = SortByIndex(GoldSorted) - for i = 1, getn(GoldSorted) do + for i = 1, #GoldSorted do local index = GoldSorted[i] local character, charserver, char_faction = GetIndexInfo(index) info.notCheckable = true @@ -521,7 +521,7 @@ local function GetTooltipText() local show_dash = false local show_realm = true local character, charserver, char_faction - for i = 1, getn(GoldSorted) do + for i = 1, #GoldSorted do character, charserver, char_faction = GetIndexInfo(GoldSorted[i]) coin_str = NiceCash(GoldSave[GoldSorted[i]].gold, false, false) show_dash = false -- 1.7.9.5