This commit is contained in:
aozhiwei 2022-11-25 18:58:59 +08:00
parent f307e915f2
commit f9b538bea6

View File

@ -4133,8 +4133,10 @@ void Human::ProcLootWeapon(AddItemDTO& dto)
bool switch_gun = false;
Weapon* weapon = TakeonWeapon(dto.item_meta);
if (weapon && GetCurrWeapon() != weapon) {
if (GetCurrWeapon()->weapon_idx == 0) {
switch_gun = true;
}
}
if (!weapon) {
return;
}