diff --git a/addons/ai/fnc_searchNearby.sqf b/addons/ai/fnc_searchNearby.sqf index df38e2bad..ca798152a 100644 --- a/addons/ai/fnc_searchNearby.sqf +++ b/addons/ai/fnc_searchNearby.sqf @@ -34,7 +34,7 @@ if ((leader _group) distanceSqr _building > 250e3) exitwith {}; _group lockWP true; private _wp = _group addWaypoint [getPos _leader, 0, currentWaypoint _group]; private _cond = "({unitReady _x || !(alive _x)} count thisList) == count thisList"; - private _comp = format ["this setFormation %1; this setBehaviour %2; deleteWaypoint [group this, currentWaypoint (group this)];",formation _group,behaviour _leader]; + private _comp = format ["this setFormation '%1'; this setBehaviour '%2'; deleteWaypoint [group this, currentWaypoint (group this)];",formation _group,behaviour _leader]; _wp setWaypointStatements [_cond,_comp]; // Prepare group to search