Merge pull request #1686 from Azaezel/alpha41/containerCorrection
Some checks are pending
Linux Build / Ubuntu Latest GCC (push) Waiting to run
MacOSX Build / MacOSX Latest Clang (push) Waiting to run
Windows Build / Windows Latest MSVC (push) Waiting to run

fix scencontainter itterator filter
This commit is contained in:
Brian Roberts 2026-03-12 20:52:26 -05:00 committed by GitHub
commit c666f411ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}