From 98741939e1c9603420a1caf63769e728639782f3 Mon Sep 17 00:00:00 2001 From: vbawol Date: Thu, 1 Dec 2016 23:25:50 -0600 Subject: [PATCH] fixes part 2 --- Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf | 4 +++- .../compile/inventory/EPOCH_selectInventoryItem.sqf | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf b/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf index 157f624a..288d56de 100644 --- a/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf +++ b/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf @@ -29,7 +29,9 @@ private ["_bar","_bar_compare","_color","_colorCompare","_container","_display", disableSerialization; EPOCH_InteractedItem = []; -EPOCH_lastContainer = _this select 1; +params ["_unit","_targetContainer","_secondaryContainer"]; +EPOCH_targetContainer = _targetContainer; +EPOCH_secondaryContainer = _secondaryContainer; waitUntil {!isNull findDisplay 602}; _display = (findDisplay 602); diff --git a/Sources/epoch_code/compile/inventory/EPOCH_selectInventoryItem.sqf b/Sources/epoch_code/compile/inventory/EPOCH_selectInventoryItem.sqf index 6006ede7..5a807e1e 100644 --- a/Sources/epoch_code/compile/inventory/EPOCH_selectInventoryItem.sqf +++ b/Sources/epoch_code/compile/inventory/EPOCH_selectInventoryItem.sqf @@ -36,6 +36,7 @@ _idc = ctrlIDC _control; _text = _control lbText _index; _data = _control lbData _index; _pic = _control lbPicture _index; +_val = _control lbValue _index; _craftingArray = []; _craftingArrayNames = [];