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

getHeadingPoints(point1, point2, true) throws exception #103

Open
PaulEden opened this issue Oct 25, 2024 · 0 comments
Open

getHeadingPoints(point1, point2, true) throws exception #103

PaulEden opened this issue Oct 25, 2024 · 0 comments

Comments

@PaulEden
Copy link

2024-10-25 21:50:12.663 WARNING SCRIPTING (Main): MIST|get3DDist|5253: mist.utils.get2DDist 2nd input value is nil

".../~mis0000532C.lua"]:5255: attempt to index local 'point2' (a nil value)
stack traceback:
[C]: ?
[string ".../~mis0000532C.lua"]:5255: in function 'get3DDist'
[string ".../~mis0000532C.lua"]:5206: in function 'getHeadingPoints'

When called in the context of getting a heading for a player, getHeadingPoints calls get3DDist, it does not pass the point2 parameter, resulting in the above exception

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