Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Intel Items - Fix addIntel addMagazine locality (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
shukari authored Mar 11, 2020
1 parent ea491c2 commit 33cb84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/intelitems/functions/fnc_addIntel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (

// Add the magazine item to the unit's inventory and get its id
private _magazinesBefore = [_unit, _item] call CBA_fnc_getMagazineIndex;
_unit addMagazine _item;
_unit addMagazine [_item, 1];
private _magazinesAfter = [_unit, _item] call CBA_fnc_getMagazineIndex;

private _magazineId = _magazinesAfter - _magazinesBefore;
Expand Down

0 comments on commit 33cb84e

Please sign in to comment.