Skip to content

Commit

Permalink
Display name of loaded ammo instead of ammo type (CleverRaven#51439)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltank authored and Venera3 committed Sep 21, 2021
1 parent 477fb2f commit 5fed64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5320,7 +5320,7 @@ std::string item::display_name( unsigned int quantity ) const
get_option<bool>( "AMMO_IN_NAMES" ) ) {
if( !ammo_current().is_null() ) {
// Loaded with ammo
ammotext = find_type( ammo_current() )->ammo->type->name();
ammotext = ammo_current()->nname( 1 );
} else if( !ammo_types().empty() ) {
// Is not loaded but can be loaded
ammotext = ammotype( *ammo_types().begin() )->name();
Expand Down

0 comments on commit 5fed64f

Please sign in to comment.