Skip to content

Commit

Permalink
Fix for issue #35067 (#35102)
Browse files Browse the repository at this point in the history
* Fix for issue #35067
  • Loading branch information
naHrej authored and esotericist committed Oct 28, 2019
1 parent 85ea5e3 commit d452ada
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 @@ -1875,7 +1875,7 @@ std::string item::info( std::vector<iteminfo> &info, const iteminfo_query *parts
info.emplace_back( "GUNMOD", _( "Handling modifier: " ), "",
iteminfo::show_plus, mod.handling );
}
if( !type->mod->ammo_modifier.empty() && parts->test( iteminfo_parts::GUNMOD_AMMO ) ) {
if( is_gun() && !type->mod->ammo_modifier.empty() && parts->test( iteminfo_parts::GUNMOD_AMMO ) ) {
for( const ammotype &at : type->mod->ammo_modifier ) {
info.push_back( iteminfo( "GUNMOD", string_format( _( "Ammo: <stat>%s</stat>" ),
at->name() ) ) );
Expand Down

0 comments on commit d452ada

Please sign in to comment.