This commit is contained in:
aozhiwei 2023-04-06 15:11:12 +08:00
parent c0c103625d
commit 8fdb361ff9

View File

@ -2564,9 +2564,10 @@ void Human::ProcLootWeapon(AddItemDTO& dto)
return; return;
} }
weapon->weapon_id = dto.item_id; weapon->weapon_id = dto.item_id;
weapon->ammo = 0;
weapon->meta = dto.item_meta; weapon->meta = dto.item_meta;
weapon->ammo = 0;
weapon->Recalc(); weapon->Recalc();
weapon->ammo = weapon->GetClipVolume(this);
AutoLoadingBullet(); AutoLoadingBullet();
if (switch_gun) { if (switch_gun) {
SetCurrWeapon(weapon); SetCurrWeapon(weapon);