From acf422b7746cb0da0d7c1ef07387e026020a9f5d Mon Sep 17 00:00:00 2001 From: Mark Ruffner Date: Wed, 8 Mar 2017 09:58:29 -0600 Subject: [PATCH] Add validation on group id for map gesture color mapping (#4976) --- addons/map_gestures/functions/fnc_addGroupColorMapping.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/map_gestures/functions/fnc_addGroupColorMapping.sqf b/addons/map_gestures/functions/fnc_addGroupColorMapping.sqf index 949aa60da1..e02403b323 100644 --- a/addons/map_gestures/functions/fnc_addGroupColorMapping.sqf +++ b/addons/map_gestures/functions/fnc_addGroupColorMapping.sqf @@ -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.")};