From fab0eee5ddd933c4fc58bf2c176e44f6444db7bb Mon Sep 17 00:00:00 2001 From: jokoho48 Date: Sun, 9 Aug 2015 15:28:11 +0200 Subject: [PATCH] corrected some small point --- addons/disposable/XEH_postInit.sqf | 4 ++-- addons/disposable/functions/fnc_updateInventoryDisplay.sqf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/disposable/XEH_postInit.sqf b/addons/disposable/XEH_postInit.sqf index 003e46c463..2f3b936692 100644 --- a/addons/disposable/XEH_postInit.sqf +++ b/addons/disposable/XEH_postInit.sqf @@ -5,7 +5,7 @@ if (!hasInterface) exitWith {}; ["inventoryDisplayLoaded", {[ACE_player, _this select 0] call FUNC(updateInventoryDisplay)}] call EFUNC(common,addEventHandler); ["playerInventoryChanged", { - params ["_unit"]; - [_unit, _this select 1 select 11] call FUNC(takeLoadedATWeapon); + params ["_unit", "_items"]; + [_unit, _items select 11] call FUNC(takeLoadedATWeapon); [_unit] call FUNC(updateInventoryDisplay); }] call EFUNC(common,addEventHandler); diff --git a/addons/disposable/functions/fnc_updateInventoryDisplay.sqf b/addons/disposable/functions/fnc_updateInventoryDisplay.sqf index f22afce698..30ef79ec01 100644 --- a/addons/disposable/functions/fnc_updateInventoryDisplay.sqf +++ b/addons/disposable/functions/fnc_updateInventoryDisplay.sqf @@ -16,7 +16,7 @@ #include "script_component.hpp" disableSerialization; -params ["_player",["_display",(findDisplay 602),[(findDisplay 602)]]] +params ["_player", ["_display",(findDisplay 602),[(findDisplay 602)]]] _player removeMagazines "ACE_PreloadedMissileDummy"; _player removeMagazines "ACE_FiredMissileDummy";