Fixed SetEntityHealth not compiling, darkm regression (bug 3684).

This commit is contained in:
David Anderson 2009-03-03 09:41:55 -05:00
parent 65996254c6
commit a0128d9b7c

View File

@ -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);
}
}