Skip to content

Commit fcb7a58

Browse files
authored
Medical Damage - Fix wound handler returns (#10790)
1 parent 8fb5576 commit fcb7a58

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

addons/medical_damage/functions/fnc_woundsHandlerVehiclecrash.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ private _newDamages = _allDamages apply {
2525
};
2626

2727
TRACE_1("Vehicle crash handled, passing damage",_newDamages);
28-
[_unit, _newDamages, _typeOfDamage] //return
28+
_this set [1, _newDamages];
29+
_this

addons/medical_damage/functions/fnc_woundsHandlerVehiclehit.sqf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ private _newDamages = [];
4343
} forEach (keys _damageMap); // micro-optimization again, two 'get's is still faster than iterating over a hashmap
4444

4545
TRACE_1("Vehicle explosion handled, passing damage",_newDamages);
46-
[_unit, _newDamages, _typeOfDamage] //return
46+
_this set [1, _newDamages];
47+
_this

0 commit comments

Comments
 (0)