Fixed SetEntityHealth not compiling, darkm regression (bug 3684).
This commit is contained in:
parent
65996254c6
commit
a0128d9b7c
@ -501,7 +501,7 @@ stock SetEntityHealth(entity, amount)
|
|||||||
new PropFieldType:type;
|
new PropFieldType:type;
|
||||||
new offset;
|
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");
|
ThrowError("SetEntityHealth not supported by this mod: Could not get serverclass name");
|
||||||
return;
|
return;
|
||||||
@ -522,7 +522,7 @@ stock SetEntityHealth(entity, amount)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetEntProp(entity, prop, amount);
|
SetEntProp(entity, Prop_Send, prop, amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user