tullamods / tullaRange

Colors actionbuttons when out of range
https://tullamods.com/tullaRange
MIT License
18 stars 6 forks source link

LUA Errors (Detected with BugSack) #38

Closed Akrololz closed 1 month ago

Akrololz commented 1 month ago

3596x tullaRange/actionState.lua:22: attempt to get length of local 'costs' (a nil value) [string "@tullaRange/actionState.lua"]:22: in function <tullaRange/actionState.lua:7> [string "@tullaRange/actionState.lua"]:37: in function GetActionState' [string "@tullaRange/updater.modern.lua"]:21: in function <tullaRange/updater.modern.lua:20> [string "=[C]"]: in functionUpdateUsable' [string "@Blizzard_ActionBar/Mainline/ActionButton.lua"]:1015: in function `OnEvent' [string "@Blizzard_ActionBar/Mainline/ActionButton.lua"]:207: in function <Blizzard_ActionBar/Mainline/ActionButton.lua:204>

Locals: slot = 26 actionType = "macro" id = 25 name = "#M" spellID = 360954 costs = nil (temporary) = 1 (temporary) = 360954 (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to get length of local 'costs' (a nil value)"

Tuller commented 1 month ago

I didn't catch that the new version of GetSpellPowerCost may return nil instead of always returning a table. Fortunately this is a simple fix.