diff --git a/src/avatar_action.cpp b/src/avatar_action.cpp index cbe1b393a55a8..cb9b324efde4c 100644 --- a/src/avatar_action.cpp +++ b/src/avatar_action.cpp @@ -722,8 +722,7 @@ void avatar_action::fire_wielded_weapon( avatar &you ) return; } else if( !weapon.is_gun() ) { return; - } else if( weapon.ammo_data() && weapon.type->gun && - !weapon.type->gun->ammo.count( weapon.ammo_data()->ammo->type ) ) { + } else if( weapon.ammo_data() && !weapon.ammo_types().count( weapon.loaded_ammo().ammo_type() ) ) { add_msg( m_info, _( "The %s can't be fired while loaded with incompatible ammunition %s" ), weapon.tname(), weapon.ammo_current()->nname( 1 ) ); return;