diff --git a/Engine/source/scene/sceneContainer.cpp b/Engine/source/scene/sceneContainer.cpp index 81a437392..1503befac 100644 --- a/Engine/source/scene/sceneContainer.cpp +++ b/Engine/source/scene/sceneContainer.cpp @@ -443,7 +443,7 @@ bool SceneContainer::removeObject(SceneObject* obj) if ( obj->getTypeMask() & ( WaterObjectType | PhysicalZoneObjectType ) ) { iter = std::find( mWaterAndZones.begin(), mWaterAndZones.end(), obj ); - if( iter != mTerrains.end() ) + if( iter != mWaterAndZones.end() ) mWaterAndZones.erase_fast(iter); }