diff --git a/SQF/dayz_code/compile/BIS_fnc/fn_findNestedElement.sqf b/SQF/dayz_code/compile/BIS_fnc/fn_findNestedElement.sqf index 9c395a13b..c94253a08 100644 --- a/SQF/dayz_code/compile/BIS_fnc/fn_findNestedElement.sqf +++ b/SQF/dayz_code/compile/BIS_fnc/fn_findNestedElement.sqf @@ -67,7 +67,7 @@ _searchArrayChildrenFunc = [_sub, _query] call _searchArrayFunc; }; }; - if(count path > 0)then{ + if(count _path > 0)then{ //Nothing was found, so take a step back. if (!_found) then {_path resize ((count _path) - 1)}; }; @@ -75,4 +75,4 @@ _searchArrayChildrenFunc = [_array, _query] call _searchArrayFunc; -_path \ No newline at end of file +_path