Skip to content

Commit

Permalink
Merge pull request CleverRaven#48605 from Hirmuolio/blackout
Browse files Browse the repository at this point in the history
Fix .300 conversion mod
  • Loading branch information
Rivet-the-Zombie authored Apr 22, 2021
2 parents 207a94d + d83aebf commit bc56e1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/avatar_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc56e1b

Please sign in to comment.