From caa9b706717f2a8577ce7fd8b4fabac41d6a19c5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 21 Oct 2021 14:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=AA=E8=A3=85=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 12b5187..f9cebd2 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -3143,9 +3143,9 @@ void Human::OnBulletHit(Bullet* bullet) return; } { - Buff* buff = GetBuffByEffect(kBET_Camouflage); - if (buff && buff->i->int_param2 == 1) { - return + Buff* buff = GetBuffByEffectId(kBET_Camouflage); + if (buff && buff->meta->int_param2 == 1) { + return; } } #ifdef DEBUG