mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-19 04:10:54 +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 ) )
|
||||
{
|
||||
iter = std::find( mWaterAndZones.begin(), mWaterAndZones.end(), obj );
|
||||
if( iter != mTerrains.end() )
|
||||
if( iter != mWaterAndZones.end() )
|
||||
mWaterAndZones.erase_fast(iter);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue