Skip to content

Commit

Permalink
Fixed saving
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Jul 1, 2024
1 parent 7c0ab48 commit ff1e120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cScripts/functions/gear/fn_gear_applyFunctions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ if (EGVAR(Settings,enableRadios)) then {


// Earplugs
if (EGVAR(Settings,addEarplugs)) then {
if !([player] call ace_hearing_fnc_hasEarPlugsIn) then {
[{
[_this select 0] call ace_hearing_fnc_putInEarplugs;
}, [player]] call CBA_fnc_execNextFrame;
};
if !([player] call ace_hearing_fnc_hasEarPlugsIn) then {
[{
[_this select 0] call ace_hearing_fnc_putInEarplugs;
}, [player]] call CBA_fnc_execNextFrame;
};


Expand Down
1 change: 1 addition & 0 deletions cScripts/functions/players/fn_unit_setInsignia.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ params [

if (!isPlayer _unit) exitWith {};
if (!_save) exitWith {};
if (!QEGVAR(Settings,allowProfileSavedInsignia)) exitWith {};

[_insignia] call EFUNC(profile,saveInsignia);

0 comments on commit ff1e120

Please sign in to comment.