Skip to content

Commit b269885

Browse files
authored
Merge pull request #1734 from ehylla93/master
Update scope check from 2 to 1 on magazine add/remove functions
2 parents da304c4 + 2d13a6d commit b269885

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

addons/common/fnc_addMagazine.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (_item isEqualTo "") exitWith {
4343

4444
private _config = configFile >> "CfgMagazines" >> _item;
4545

46-
if (!isClass _config || {getNumber (_config >> "scope") < 2}) exitWith {
46+
if (!isClass _config || {getNumber (_config >> "scope") < 1}) exitWith {
4747
TRACE_2("Item does not exist in Config",_unit,_item);
4848
_return
4949
};

addons/common/fnc_addMagazineCargo.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if (_item isEqualTo "") exitWith {
4848

4949
private _config = configFile >> "CfgMagazines" >> _item;
5050

51-
if (isNull _config || {getNumber (_config >> "scope") < 2}) exitWith {
51+
if (isNull _config || {getNumber (_config >> "scope") < 1}) exitWith {
5252
TRACE_2("Item not exist in Config",_container,_item);
5353
_return
5454
};

addons/common/fnc_removeMagazine.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (_item isEqualTo "") exitWith {
4343

4444
private _config = configFile >> "CfgMagazines" >> _item;
4545

46-
if (!isClass _config || {getNumber (_config >> "scope") < 2}) exitWith {
46+
if (!isClass _config || {getNumber (_config >> "scope") < 1}) exitWith {
4747
TRACE_2("Item does not exist in Config",_unit,_item);
4848
_return
4949
};

addons/common/fnc_removeMagazineCargo.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (_item isEqualTo "") exitWith {
5050

5151
private _config = configFile >> "CfgMagazines" >> _item;
5252

53-
if (isNull _config || {getNumber (_config >> "scope") < 2}) exitWith {
53+
if (isNull _config || {getNumber (_config >> "scope") < 1}) exitWith {
5454
TRACE_2("Item does not exist in Config",_container,_item);
5555
false
5656
};

0 commit comments

Comments
 (0)