Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m_my_dest nil #13

Open
pnorman opened this issue Jul 24, 2024 · 0 comments
Open

m_my_dest nil #13

pnorman opened this issue Jul 24, 2024 · 0 comments

Comments

@pnorman
Copy link
Contributor

pnorman commented Jul 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant