-
Notifications
You must be signed in to change notification settings - Fork 739
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
Invalid use of nil comparison #7402
Comments
Did you encounter an actual issue or did you review the existing code? |
Well under normal circumstances, I haven't encountered any issues. However, if you try something like this:
when there aren't 10 tyres in the cargo, which is pretty bad, I admit, you end up getting this:
I just happened to gaze at the code and saw this and thought it might have been a mistake, that's all. If it's intentionally made that way, my bad. |
Only if you call this function is scheduled environment.
instead. |
Yes |
so before PR this would cause loss of loaded items
|
Hello guys, sorry for not conforming to reporting standards, but this one is strictly code-related. Isn't this invalid code?
ACE3/addons/cargo/functions/fnc_removeCargoItem.sqf
Line 56 in 62fccd6
I believe it should be
FILTER(_loaded,!isNil "_x");
The text was updated successfully, but these errors were encountered: