From ac5152815f055de2ef76a261f0dc2082030f755c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=82=B4=20=EC=9D=B4=EB=A6=84?= Date: Mon, 12 Apr 2021 20:35:01 +0900 Subject: [PATCH] SV_DAMAGE OOB --- source/src/clients2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 27da8681..d490169d 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -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);