mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
fix scencontainter itterator filter
This commit is contained in:
parent
e5ac88e914
commit
19c5a55dcd
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ bool SceneContainer::removeObject(SceneObject* obj)
|
||||||
if ( obj->getTypeMask() & ( WaterObjectType | PhysicalZoneObjectType ) )
|
if ( obj->getTypeMask() & ( WaterObjectType | PhysicalZoneObjectType ) )
|
||||||
{
|
{
|
||||||
iter = std::find( mWaterAndZones.begin(), mWaterAndZones.end(), obj );
|
iter = std::find( mWaterAndZones.begin(), mWaterAndZones.end(), obj );
|
||||||
if( iter != mTerrains.end() )
|
if( iter != mWaterAndZones.end() )
|
||||||
mWaterAndZones.erase_fast(iter);
|
mWaterAndZones.erase_fast(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue