Add validation on group id for map gesture color mapping (#4976)

This commit is contained in:
Mark Ruffner 2017-03-08 09:58:29 -06:00 committed by PabstMirror
parent 0841c05a6d
commit acf422b774

View File

@ -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.")};