Skip to content

Commit

Permalink
validate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MissHeda committed Oct 4, 2023
1 parent 785e39a commit 0f2ae3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/misc/functions/fnc_checkFAKSlot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ private _return = false;
private _itemType = _mag call BIS_fnc_itemType;
_itemType = _itemType select 0;

if (_itemType == "Item") exitWith {
if (_itemType == "Item") exitWith {
[_unit, _mag] call ACEFUNC(common,hasItem);
};

if (_itemType != "Magazine") exitWith { _return };
if (_itemType != "Magazine") exitWith { _return };

private _ammoCount = [_unit, _mag] call FUNC(getMagazineAmmoCounts);

Expand Down
2 changes: 1 addition & 1 deletion addons/misc/functions/fnc_getMagazineAmmoCounts.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ params ["_unit", "_mag", "_returnLocation"];

private _magAmmo = [];
private _return = _magAmmo;
private _targetMag = magazinesAmmoFull _unit select {_x select 0 == _mag};
private _targetMag = magazinesAmmoFull _unit select {_x select 0 == _mag};

if (_returnLocation == true) exitWith {

Expand Down

0 comments on commit 0f2ae3e

Please sign in to comment.