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
private keyword #204
private keyword #204
Conversation
…ect with pushBack
if (!IS_ARRAY(_this)) exitWith {nil}; | ||
if (_this isEqualTo []) exitWith {nil}; | ||
|
||
params ["_min"]; | ||
_index = 0; | ||
|
||
private _index = 0; | ||
|
||
{ | ||
if (isNil "_x" || {(typeName _x) != (typeName 0)}) exitWith {_max = nil; _index = nil;}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed a bug here: _max should be _min here (and in the last isNil check in the file aswell)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function doesn't work at all, because a few lines below it does:
if (isNil "_max") exitWith {nil};
with _max
never being defined (or carried over from another function due to missing private
)
fixed in: #207
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's what I referred to with "and in the last isNil check in the file aswell". Good to see the separate PR with the fix. I'll review them ASAP.
requires 1.54 and #203