Tunnelvision (Focused)

Tunnelvision (Focused)

13.5k Downloads

LUA error when loading addon

necroburn opened this issue ยท 2 comments

commented
Message: Interface\AddOns\Threatrack\SavedVars.lua:12: attempt to index local 'current' (a nil value)
Time: Wed Oct 30 02:22:06 2019
Count: 1
Stack: Interface\AddOns\Threatrack\SavedVars.lua:12: attempt to index local 'current' (a nil value)
Interface\AddOns\Threatrack\SavedVars.lua:12: in function <Interface\AddOns\Threatrack\SavedVars.lua:10>
Interface\AddOns\Threatrack\SavedVars.lua:43: in function <Interface\AddOns\Threatrack\SavedVars.lua:39>

Locals: default = <table> {
 showHostileOnly = true
 frameScale = 1
}
current = nil
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 showHostileOnly = true
 frameScale = 1
}
(for control) = "showHostileOnly"
key = "showHostileOnly"
defaultValue = true
(*temporary) = "showHostileOnly"
(*temporary) = true
(*temporary) = nil
(*temporary) = "attempt to index local 'current' (a nil value)"
UpdateSavedVars = <function> defined @Interface\AddOns\Threatrack\SavedVars.lua:10
commented

Thank you. I'll look into it.

commented

We are not initializing the global ThreatrackSavedVars thus a "nil value".