From 6ac2ca9208ea43591102ad02c7d27cf422abc5cc Mon Sep 17 00:00:00 2001 From: ulteq Date: Fri, 12 Jun 2015 11:48:49 +0200 Subject: [PATCH] Fixes _projectile not being updated --- addons/medical/functions/fnc_handleDamage.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/medical/functions/fnc_handleDamage.sqf b/addons/medical/functions/fnc_handleDamage.sqf index 5e58772a36..ab6e6f2a68 100644 --- a/addons/medical/functions/fnc_handleDamage.sqf +++ b/addons/medical/functions/fnc_handleDamage.sqf @@ -52,6 +52,8 @@ if (GVAR(level) < 2) then { _damageReturn = _this call FUNC(handleDamage_basic); }; _newDamage = _this call FUNC(handleDamage_caching); + // handleDamage_caching may have modified the projectile string + _projectile = _this select 4; _typeOfDamage = [_projectile] call FUNC(getTypeOfDamage); _typeIndex = (GVAR(allAvailableDamageTypes) find _typeOfDamage);