Skip to content

Commit

Permalink
Inventory - Fix wrong iteration count (#10342)
Browse files Browse the repository at this point in the history
Update fnc_forceItemListUpdate.sqf
  • Loading branch information
johnb432 committed Sep 27, 2024
1 parent d9b3ef9 commit cfa9c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/inventory/functions/fnc_forceItemListUpdate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private _itemKeyCache = uiNamespace getVariable QGVAR(itemKeyCache);
private _backpackKeyCache = uiNamespace getVariable QGVAR(backpackKeyCache);
private _config = configNull;

for "_i" from (lbSize _itemList) to 0 step -1 do {
for "_i" from (lbSize _itemList) - 1 to 0 step -1 do {
// All items have their classnames in lbData, except backpacks
_className = _itemList lbData _i;

Expand Down

0 comments on commit cfa9c91

Please sign in to comment.