Skip to content

Commit

Permalink
Hearing - Fix invalid usage of ARR macro (#7932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren authored Oct 3, 2020
1 parent 2f37320 commit c4e7092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/hearing/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class CfgVehicles {
displayName = CSTRING(EarPlugs_On);
condition = QUOTE(GVAR(EnableCombatDeafness) && {!([_player] call FUNC(hasEarPlugsIn)) && {'ACE_EarPlugs' in items _player}});
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
statement = QUOTE( ARR_2([_player, true]) call FUNC(putInEarPlugs) );
statement = QUOTE([ARR_2(_player, true)] call FUNC(putInEarPlugs));
showDisabled = 0;
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};
class ACE_RemoveEarplugs {
displayName = CSTRING(EarPlugs_Off);
condition = QUOTE( GVAR(EnableCombatDeafness) && {[_player] call FUNC(hasEarPlugsIn)});
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
statement = QUOTE( ARR_2([_player, true]) call FUNC(removeEarPlugs) );
statement = QUOTE([ARR_2(_player, true)] call FUNC(removeEarPlugs));
showDisabled = 0;
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
};
Expand Down

0 comments on commit c4e7092

Please sign in to comment.