Skip to content

Commit

Permalink
fix: bad pump iterator (#3737)
Browse files Browse the repository at this point in the history
* Fix pump iterator

* 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 22, 2023
1 parent f409ff3 commit f6a55dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ void iexamine::gaspump( player &p, const tripoint &examp )
for( auto item_it = items.begin(); item_it != items.end(); ++item_it ) {
item *content = *item_it;
if( content->made_of( LIQUID ) ) {
item_it = location_vector<item>::iterator();
///\EFFECT_DEX decreases chance of spilling gas from a pump
if( one_in( 10 + p.get_dex() ) ) {
add_msg( m_bad, _( "You accidentally spill the %s." ), content->type_name() );
Expand Down

0 comments on commit f6a55dd

Please sign in to comment.