Fix tagTestingThread error (#4662)

Close #4659
This commit is contained in:
PabstMirror 2016-11-12 15:46:29 -06:00 committed by GitHub
parent eec0c62dc5
commit 9e85508f0d

View File

@ -27,12 +27,13 @@ GVAR(tagsToTest) = GVAR(tagsToTest) select {
private _intersections = lineIntersectsSurfaces [_tagPosASL, _endPosASL, _tag, objNull, true, 1, "GEOM", "FIRE"];
// If there's no intersections
if (_intersections isEqualTo []) exitWith {
if (_intersections isEqualTo []) then {
TRACE_1("No intersections, deleting:",_tag);
deleteVehicle _tag;
false
} else {
true
};
true
};
// If there's no more tag