exit the loop properly

This commit is contained in:
bux578 2016-06-16 17:36:37 +02:00
parent 2d029401f5
commit 04c9b628c4

View File

@ -54,6 +54,9 @@ private _distance = -1;
_distance = _detectorPointAGL distance _x; _distance = _detectorPointAGL distance _x;
}; };
}; };
if (!isNull _mine) exitWith {};
} forEach _nearestObjects; } forEach _nearestObjects;
TRACE_3("return",_isDetectable,_mine,_distance); TRACE_3("return",_isDetectable,_mine,_distance);