m_my_dest nil
pnorman opened this issue ยท 0 comments
m_my_dest nil
I'm getting the error
21x CrossRP/protocol.lua:392: attempt to get length of local 'dest1' (a nil value)
[string "@CrossRP/protocol.lua"]:392: in function <CrossRP/protocol.lua:391>
[string "=(tail call)"]: ?
[string "@CrossRP/protocol.lua"]:1947: in function <CrossRP/protocol.lua:1942>
[string "@CrossRP/protocol.lua"]:2589: in function `OnMouseoverUnit'
[string "@CrossRP/CrossRP.lua"]:257: in function <CrossRP/CrossRP.lua:255>
[string "=[C]"]: ?
[string "@BigWigs/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...igs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@BigWigs/Libs/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@CrossRP/libs/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <...ceCrossRP/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
Locals:
dest1 = nil
dest2 = "59H"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to get length of local 'dest1' (a nil value)"
A bit of debugging shows it's coming from a IsDestLocal call, which is
local function IsDestLocal( dest )
return IsDestLinked( m_my_dest, dest )
end
The most likely cause is m_my_dest
is not getting properly set in Init, but I don't know how to debug the startup functions