mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1686 from Azaezel/alpha41/containerCorrection
fix scencontainter itterator filter
This commit is contained in:
commit
c666f411ef
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