Skip to content

Commit

Permalink
Merge pull request #183 from CBATeam/SaferGetGroup
Browse files Browse the repository at this point in the history
Make getGroup more robust. Fixes #182
  • Loading branch information
Killswitch00 committed Oct 17, 2015
2 parents d7dc8b7 + dbad5a8 commit d91297d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/common/fnc_getGroup.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Author:
Rommel
---------------------------------------------------------------------------- */

if (toUpper (typeName _this) isEqualTo "GROUP") exitwith {_this};
group _this
params [["_group", grpNull, [grpNull, objNull]]];
if ((typeName _group) isEqualTo "GROUP") exitWith {_group};
group _group

0 comments on commit d91297d

Please sign in to comment.