Skip to content

Commit

Permalink
Fix mop iuse
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored and kevingranade committed Aug 3, 2020
1 parent f9e0525 commit 847cf09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2786,9 +2786,10 @@ bool map::mop_spills( const tripoint &p )
}
}

for( const auto &pr : field_at( p ) ) {
if( ( retval |= pr.second.get_field_type().obj().phase == phase_id::LIQUID ) ) {
break;
field &fld = field_at( p );
for( const auto &f : fld ) {
if( f.second.get_field_type().obj().phase == phase_id::LIQUID ) {
retval |= fld.remove_field( f.first );
}
}

Expand Down

0 comments on commit 847cf09

Please sign in to comment.