Skip to content

Commit

Permalink
Arsenal - Fix saving loadouts on new profiles (#9523)
Browse files Browse the repository at this point in the history
* fix

* Fix unrelated TRACE macro in arsenal

* Update addons/arsenal/functions/fnc_onArsenalOpen.sqf

Co-authored-by: PabstMirror <[email protected]>

---------

Co-authored-by: PabstMirror <[email protected]>
  • Loading branch information
LinkIsGrim and PabstMirror authored Oct 18, 2023
1 parent abb6519 commit b2b49cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions addons/arsenal/functions/fnc_onArsenalOpen.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ if (isNil QGVAR(defaultLoadoutsList)) then {
};
};

if (isNil {profileNamespace getVariable QGVAR(saved_loadouts)}) then {
profileNamespace setVariable [QGVAR(saved_loadouts), []];
};

if (isNil QGVAR(virtualItems)) then {
private _virtualItems = [
[IDX_VIRT_WEAPONS, createHashMapFromArray [[IDX_VIRT_PRIMARY_WEAPONS, createHashMap], [IDX_VIRT_SECONDARY_WEAPONS, createHashMap], [IDX_VIRT_HANDGUN_WEAPONS, createHashMap]]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
*/

params ["", "_config"];
TRACE_1("statTextStatement_magCount",_config)
TRACE_1("statTextStatement_magCount",_config);

getNumber (_config >> "count");

0 comments on commit b2b49cc

Please sign in to comment.