From d1cca79c3178afb4dc4ef087cb60e4c1a8ec79a8 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <c.oelckers@zdoom.fake>
Date: Fri, 23 Jan 2015 20:29:38 +0100
Subject: [PATCH] - Use SpawnHealth() when calling A_ResetHealth.

---
 src/thingdef/thingdef_codeptr.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp
index 324500f7c6..be3921877c 100644
--- a/src/thingdef/thingdef_codeptr.cpp
+++ b/src/thingdef/thingdef_codeptr.cpp
@@ -5795,7 +5795,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ResetHealth)
 	}
 	else if (mobj && (mobj->health > 0))
 	{
-		mobj->health = mobj->GetDefault()->health;
+		mobj->health = mobj->SpawnHealth();
 	}
 }