Quantcast

- Gold - Remove getn deprecated a while ago for IDE

urnati [08-16-24 - 00:17]
- Gold - Remove getn deprecated a while ago for IDE
Filename
TitanGold/TitanGold.lua
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