From 6aa32ce8112a8beab6d2fbc9135029a5cba51075 Mon Sep 17 00:00:00 2001
From: PabstMirror <pabstmirror@gmail.com>
Date: Sat, 23 Sep 2017 11:46:48 -0500
Subject: [PATCH] Fix setUnconsciousAnim error

---
 addons/medical_engine/XEH_postInit.sqf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/addons/medical_engine/XEH_postInit.sqf b/addons/medical_engine/XEH_postInit.sqf
index f420474e68..fb8cefec3b 100644
--- a/addons/medical_engine/XEH_postInit.sqf
+++ b/addons/medical_engine/XEH_postInit.sqf
@@ -48,6 +48,7 @@
 // needed, because the vanilla INCAPACITATED state does not handle vehicles
 ["CAManBase", "GetInMan", {
     params ["_unit"];
+    if (!local _unit) exitWith {};
 
     if (lifeState _unit == "INCAPACITATED") then {
         [_unit, true] call FUNC(setUnconsciousAnim);