From 703bc2465772dd86427a2a68644124a36017f65b Mon Sep 17 00:00:00 2001 From: Garth L-H de Wet Date: Thu, 2 Apr 2015 21:44:33 +0200 Subject: [PATCH] Made picking up explosives use the new AddToInventory function from common. --- addons/explosives/CfgVehicles.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/explosives/CfgVehicles.hpp b/addons/explosives/CfgVehicles.hpp index ececb3b012..4c7eb3de82 100644 --- a/addons/explosives/CfgVehicles.hpp +++ b/addons/explosives/CfgVehicles.hpp @@ -112,7 +112,7 @@ class CfgVehicles { displayName = "$STR_ACE_Explosives_Pickup"; distance = 4; condition = "true"; - statement = QUOTE(_player addMagazine (_target getVariable QUOTE(QGVAR(class)));deleteVehicle _target;); + statement = QUOTE([ARR_2(_player,_target getVariable QUOTE(QGVAR(class)))] call EFUNC(common,addToInventory);deleteVehicle _target;); showDisabled = 0; exceptions[] = {}; priority = 5;