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

Intel Items - Fix addIntel addMagazine locality #225

Merged
merged 2 commits into from
Mar 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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