Skip to content

Commit

Permalink
fix: error message on npc clothing takeoff (#3630)
Browse files Browse the repository at this point in the history
* Fix error message on npc takeoff

* style(autofix.ci): automated formatting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
joveeater and autofix-ci[bot] authored Nov 11, 2023
1 parent da5d89a commit 3582855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,9 @@ detached_ptr<item> npc::wear_if_wanted( detached_ptr<item> &&it, std::string &re
return armor->covers( bp );
} );
if( iter != worn.end() && !( is_limb_broken( bp ) && ( *iter )->has_flag( flag_SPLINT ) ) ) {
took_off = takeoff( **iter );
item &it = **iter;
iter = location_vector<item>::iterator();
took_off = takeoff( it );
break;
}
}
Expand Down

0 comments on commit 3582855

Please sign in to comment.