From a0128d9b7cb31730969c62ae4e7f98c55942a2b2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Mar 2009 09:41:55 -0500 Subject: [PATCH] Fixed SetEntityHealth not compiling, darkm regression (bug 3684). --- plugins/include/entity_prop_stocks.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/include/entity_prop_stocks.inc b/plugins/include/entity_prop_stocks.inc index 2e9d9811..aac12315 100644 --- a/plugins/include/entity_prop_stocks.inc +++ b/plugins/include/entity_prop_stocks.inc @@ -501,7 +501,7 @@ stock SetEntityHealth(entity, amount) new PropFieldType:type; new offset; - if (!GetEntityNetClass(ent, cls, sizeof(cls))) + if (!GetEntityNetClass(entity, cls, sizeof(cls))) { ThrowError("SetEntityHealth not supported by this mod: Could not get serverclass name"); return; @@ -522,7 +522,7 @@ stock SetEntityHealth(entity, amount) } else { - SetEntProp(entity, prop, amount); + SetEntProp(entity, Prop_Send, prop, amount); } }