diff --git a/src/item.cpp b/src/item.cpp index fc57812319d06..c4e2e63b0271d 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -3691,6 +3691,8 @@ int item::get_quality( const quality_id &id ) const if( itm.is_ammo() ) { auto &ammo_types = itm.type->ammo->type; return ammo_types.find( ammo_type() ) != ammo_types.end(); + } else if( itm.is_magazine() ) { + return itm.ammo_type() == ammo_type(); } else if( itm.is_toolmod() ) { return true; }