From e8ae2042fa64d08b4b015665c3e39c1fc21d2b7b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 27 Jul 2020 13:21:38 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 83a7168..7f57e40 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -33,11 +33,12 @@ const int kREVIVE_BUFF_ID = 0; static void InternalShot(Human* hum, MetaData::Equip* bullet_meta, int skill_id, bool& shot_ok) { shot_ok = false; -#if 0 - if (!curr_weapon->meta) { + + if (!bullet_meta) { return; } +#if 0 if (curr_weapon->weapon_idx != 0 && curr_weapon->ammo <= 0) { AutoLoadingBullet();