From 847cf0948c5761a185e72b2eaf88b4b9f4559875 Mon Sep 17 00:00:00 2001 From: ZhilkinSerg Date: Sun, 2 Aug 2020 17:18:03 +0300 Subject: [PATCH] Fix mop iuse --- src/map.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index 01aca58e7ce4f..acb85b4260071 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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 ); } }