Skip to content

Commit

Permalink
Add quotes around setFormation/Behaviour params. Fixes #366
Browse files Browse the repository at this point in the history
  • Loading branch information
Killswitch00 committed Jun 6, 2016
1 parent 56413ab commit a36cf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/ai/fnc_searchNearby.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a36cf13

Please sign in to comment.