fix container creation

This commit is contained in:
Salluci 2023-07-14 19:27:13 +03:00
parent fac2e6151a
commit 2b52fee1bf

View File

@ -56,10 +56,10 @@ if ((maxLoad _container) isEqualTo 0) then {
if (isNull _container) then {
// Create ammo storage container
private _containerType = getText (configOf _vehicle >> QUOTE(ADDON) >> "container");
private _containerType = getText (configOf _unloadTo >> QUOTE(ADDON) >> "container");
// Use setting if container already created or not defined
if (_containerType isEqualTo "" || {!isNull (_vehicle getVariable [QGVAR(container), objNull])}) then {
if (_containerType isEqualTo "" || {!isNil {_unloadTo getVariable QGVAR(container)}}) then {
_containerType = ["GroundWeaponHolder", QGVAR(ammo_holder)] select GVAR(handleExtraMagazinesType);
};