Skip to content

Commit

Permalink
Fixed typo in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jul 27, 2024
1 parent edea6ee commit 6fd5035
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ params ["_unit"];
_args params ["_attachment", "_name", "_picture", "_weaponItems", "_currentWeapon"];

private _cfgWeapons = configFile >> "CfgWeapons";
private _attachementNotOnGun = !(_attachment in _weaponItems);
private _attachmentNotOnGun = !(_attachment in _weaponItems);
private _actions = [];

// "attach" action
if (_attachementNotOnGun && {[_unit, _attachment] call EFUNC(common,hasItem)}) then {
if (_attachmentNotOnGun && {[_unit, _attachment] call EFUNC(common,hasItem)}) then {
private _type = getNumber (_cfgWeapons >> _attachment >> "itemInfo" >> "type");
private _currentAttachment = _weaponItems select ([TYPE_MUZZLE, TYPE_FLASHLIGHT, TYPE_OPTICS, TYPE_BIPOD] find _type);

Expand All @@ -72,7 +72,7 @@ params ["_unit"];
};

// Don't show interaction with attachments that aren't on the current weapon
if (_attachementNotOnGun) exitWith {_actions};
if (_attachmentNotOnGun) exitWith {_actions};

// "detach" action
_actions pushBack [
Expand Down

0 comments on commit 6fd5035

Please sign in to comment.