diff --git a/addons/medical_engine/script_macros_medical.hpp b/addons/medical_engine/script_macros_medical.hpp index 12c1e1f90c6..20a9a689209 100644 --- a/addons/medical_engine/script_macros_medical.hpp +++ b/addons/medical_engine/script_macros_medical.hpp @@ -200,7 +200,7 @@ #define GET_BANDAGED_WOUNDS(unit) (unit getVariable [VAR_BANDAGED_WOUNDS, createHashMap]) #define GET_STITCHED_WOUNDS(unit) (unit getVariable [VAR_STITCHED_WOUNDS, createHashMap]) #define GET_DAMAGE_THRESHOLD(unit) (unit getVariable [QEGVAR(medical,damageThreshold), [EGVAR(medical,AIDamageThreshold),EGVAR(medical,playerDamageThreshold)] select (isPlayer unit)]) -#define GET_BODYPART_DAMAGE(unit) (unit getVariable [VAR_BODYPART_DAMAGE, DEFAULT_BODYPART_DAMAGE_VALUES]) +#define GET_BODYPART_DAMAGE(unit) (unit getVariable [VAR_BODYPART_DAMAGE, DEFAULT_BODYPART_DAMAGE_VALUES]) // The following function calls are defined here just for consistency #define GET_BLOOD_LOSS(unit) ([unit] call EFUNC(medical_status,getBloodLoss)) diff --git a/addons/medical_treatment/functions/fnc_addTrauma.sqf b/addons/medical_treatment/functions/fnc_addTrauma.sqf index 91e572cee4d..dab6f1d929c 100644 --- a/addons/medical_treatment/functions/fnc_addTrauma.sqf +++ b/addons/medical_treatment/functions/fnc_addTrauma.sqf @@ -20,7 +20,7 @@ params ["_unit", "_bodyPart", "_trauma"]; private _partIndex = ALL_BODY_PARTS find _bodyPart; -private _bodyPartDamage = GET_BODYPART_DAMAGE(_unit) select _partIndex; +private _bodyPartDamage = GET_BODYPART_DAMAGE(_unit); private _newDam = (_bodyPartDamage select _partIndex) + _trauma; // Prevent obscenely small damage from lack of floating precision