-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Exception with blip natives #3307
Copy link
Copy link
Open
Labels
ScRT: LuaIssues/PRs related to the Lua scripting runtimeIssues/PRs related to the Lua scripting runtimebugtriageNeeds a preliminary assessment to determine the urgency and required actionNeeds a preliminary assessment to determine the urgency and required action
Metadata
Metadata
Assignees
Labels
ScRT: LuaIssues/PRs related to the Lua scripting runtimeIssues/PRs related to the Lua scripting runtimebugtriageNeeds a preliminary assessment to determine the urgency and required actionNeeds a preliminary assessment to determine the urgency and required action
What happened?
If you pass -1 on any of the blip natives, there will be a native execution error.
Expected result
There shouldn't have been an error, same as when you pass a different invalid number to the functions
Reproduction steps
print( DoesBlipExist(-1) ). Do note that this also happens with other blip natives such as SetBlipDisplay.Importancy
There's a workaround
Area(s)
ScRT: Lua
Specific version(s)
3258 though i've seen in earlier builds too.
Additional information
The error happens both in JS and LUA. No idea about C#.