Skip to content

Commit

Permalink
Merge pull request CleverRaven#73717 from Procyonae/Backport71582
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin authored May 12, 2024
2 parents 0227c74 + fd6a398 commit 599168e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/character_attire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2024,10 +2024,8 @@ void outfit::fire_options( Character &guy, std::vector<std::string> &options,
std::vector<std::function<void()>> &actions )
{
for( item &clothing : worn ) {

std::vector<item *> guns = guy.cache_get_items_with( "is_gun", &item::is_gun,
[&guy]( const item & it ) {
return !guy.is_wielding( it );
std::vector<item *> guns = clothing.items_with( []( const item & it ) {
return it.is_gun();
} );

if( !guns.empty() && clothing.type->can_use( "holster" ) ) {
Expand Down

0 comments on commit 599168e

Please sign in to comment.