Arsenal - Fix saving loadouts on new profiles (#9523)

* fix

* Fix unrelated TRACE macro in arsenal

* Update addons/arsenal/functions/fnc_onArsenalOpen.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Grim 2023-10-18 14:17:22 -04:00 committed by GitHub
parent abb6519d6d
commit b2b49cc993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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]]],

View File

@ -14,6 +14,6 @@
*/
params ["", "_config"];
TRACE_1("statTextStatement_magCount",_config)
TRACE_1("statTextStatement_magCount",_config);
getNumber (_config >> "count");