Equip Recommended Gear

Equip Recommended Gear

3.5k Downloads

Attempt to compare number with table

Saaappi opened this issue ยท 2 comments

commented
Click here
18x EquipRecommendedGear/Core.lua:531: attempt to compare number with table
[string "@EquipRecommendedGear/Core.lua"]:531: in function `DoTheThing'
[string "@SkySuite/_Functions/Quests.lua"]:11: in function <SkySuite/_Functions/Quests.lua:4>
[string "@SkySuite/_Functions/Quests.lua"]:73: in function <SkySuite/_Functions/Quests.lua:48>

Locals:
msg = <table> {
 DoTheThing = <function> defined @EquipRecommendedGear/Core.lua:118
}
itemLevel = <table> {
 1 = 295
 2 = 295
 3 = 295
 5 = 295
 6 = 282
 7 = 295
 8 = 292
 9 = 236
 10 = 187
 11 = 279
 12 = 289
 13 = 295
 14 = 295
 15 = 295
 16 = 282
 17 = 187
}
bag = <table> {
 1 = 32
 2 = 32
 3 = 32
 4 = 32
 5 = 32
 0 = 20
}
item = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
}
upgrade = <table> {
 1 = <table> {
 }
}
weaponUpgrade = <table> {
}
changeHighestForSlot = <function> defined @EquipRecommendedGear/Core.lua:309
ringNo = 1
trinketNo = 0
ringKey = 1
trinketKey = nil
removeDuplicates = <function> defined @EquipRecommendedGear/Core.lua:363
weaponUpgrade = <table> {
 1 = <table> {
 }
}
bestWeapons = <table> {
 1 = <table> {
 }
}
_ = 269
specName = "Windwalker"
className = "Monk"
classFile = "MONK"
_ = 0
_ = 1
_ = 0.596078
classColor = "ff00ff98"
next = <function> defined =[C]:-1
(*temporary) = 1
(*temporary) = <table> {
 1 = <table> {
 }
}
(*temporary) = 1
(*temporary) = <table> {
 ilv = 282
 item = "|cff1eff00|Hitem:197989::::::::66:269::25:1:8768:2:28:2437:9:66:::::|h[Water-Ordained Signet]|h|r"
 slot = 11
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = 28
(*temporary) = <table> {
 ITEM_MOD_CRIT_RATING_SHORT = 25
 ITEM_MOD_STAMINA_SHORT = 52
 ITEM_MOD_DAMAGE_PER_SECOND_SHORT = 31.923077
 ITEM_MOD_MASTERY_RATING_SHORT = 26
 ITEM_MOD_AGILITY_SHORT = 28
}
(*temporary) = "attempt to compare number with table"
app = <table> {
 api = <table> {
 }
 DoingStuff = false
 Print = <function> defined @EquipRecommendedGear/Core.lua:43
 Armor = <table> {
 }
 CreateAssets = <function> defined @EquipRecommendedGear/Core.lua:61
 Stat = <table> {
 }
 NameLong = "|R|cffC69B6DEquip Recommended Gear|R"
 Type = <table> {
 }
 Slot = <table> {
 }
 NameShort = "|R|cffC69B6DERG|R"
 DualWield = <table> {
 }
 CanDualWield = true
 Dump = <function> defined @EquipRecommendedGear/Core.lua:26
 Level = 66
 ClassID = 10
 Button = rcButton {
 }
 SpecID = 269
 Initialise = <function> defined @EquipRecommendedGear/Core.lua:52
 Weapon = <table> {
 }
}
commented

How do you even manage to make msg in DoTheThing(msg) a table? :')

commented

Should be prevented from occurring with input sanitisation: d58681f