Skip to content

Commit

Permalink
Add validation on group id for map gesture color mapping (#4976)
Browse files Browse the repository at this point in the history
  • Loading branch information
AACO authored and PabstMirror committed Mar 8, 2017
1 parent 0841c05 commit acf422b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/map_gestures/functions/fnc_addGroupColorMapping.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ TRACE_3("params",_group,_leadColor,_unitColor);

if (_group isEqualType grpNull) then {_group = groupID _group};

if (_group == "") exitWith {ERROR("Group ID is blank, which is not valid.")};
if (!([_leadColor] call FUNC(isValidColorArray))) exitWith {ERROR("leadColor is not a valid color array.")};
if (!([_unitColor] call FUNC(isValidColorArray))) exitWith {ERROR("color is not a valid color array.")};

Expand Down

0 comments on commit acf422b

Please sign in to comment.