Skip to content

Make getGroup more robust. Fixes #182#183

Merged
Killswitch00 merged 2 commits intomasterfrom
SaferGetGroup
Oct 17, 2015
Merged

Make getGroup more robust. Fixes #182#183
Killswitch00 merged 2 commits intomasterfrom
SaferGetGroup

Conversation

@Killswitch00
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread addons/common/fnc_getGroup.sqf Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be params [["_group", grpNull]];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to consider

params [["_group", grpNull, [grpNull, objNull]]];

That should also provide some validation of the input.

Also, toUpper may not be necessary. typeName returns "GROUP" already. The toUpper may be redundant here.

Killswitch00 added a commit that referenced this pull request Oct 17, 2015
Make getGroup more robust. Fixes #182
@Killswitch00 Killswitch00 merged commit d91297d into master Oct 17, 2015
@Killswitch00 Killswitch00 deleted the SaferGetGroup branch October 30, 2015 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants