Browse Source

groundcover shadowvar cleanup

Azaezel 7 years ago
parent
commit
610667f760
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/T3D/fx/groundCover.cpp

+ 2 - 2
Engine/source/T3D/fx/groundCover.cpp

@@ -1184,9 +1184,9 @@ GroundCoverCell* GroundCover::_generateCell( const Point2I& index,
             terrainBlock = dynamic_cast< TerrainBlock* >( terrainBlocks.first() );
          else
          {
-            for ( U32 i = 0; i < terrainBlocks.size(); i++ )
+            for ( U32 blockIDx = 0; blockIDx < terrainBlocks.size(); blockIDx++ )
             {
-               TerrainBlock *terrain = dynamic_cast< TerrainBlock* >( terrainBlocks[ i ] );
+               TerrainBlock *terrain = dynamic_cast< TerrainBlock* >( terrainBlocks[ blockIDx ] );
                if( !terrain )
                   continue;