This commit is contained in:
aozhiwei 2021-08-03 02:30:28 +00:00
parent 9d388b8813
commit a5da82bb6e

View File

@ -2051,7 +2051,7 @@ void Creature::SetCurrWeapon(Weapon* weapon)
CancelAction(); CancelAction();
if (weapon->weapon_idx != 0 && if (weapon->weapon_idx != 0 &&
weapon->ammo <= 0) { weapon->ammo <= 0) {
if (weapon->weapon_idx == GUN_SLOT1 | if (weapon->weapon_idx == GUN_SLOT1 ||
weapon->weapon_idx == GUN_SLOT2) { weapon->weapon_idx == GUN_SLOT2) {
AutoLoadingBullet(); AutoLoadingBullet();
} }