SV_DAMAGE OOB

This commit is contained in:
내 이름
2021-04-12 20:35:01 +09:00
parent e324fe3e26
commit ac5152815f
+1 -1
View File
@@ -790,7 +790,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false)
armour = getint(p),
health = getint(p);
playerent *target = getclient(tcn), *actor = getclient(acn);
if(!target || !actor) break;
if(!target || !actor || valid_weapon(gun)) break;
target->armour = armour;
target->health = health;
dodamage(damage, target, actor, -1, type==SV_GIBDAMAGE, false);