mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
Issue found with PVS-Studio:
Many places utilize post-incrementation with iterators, but it's better performance to use pre-incrementation. Resolved by changing the iter++ instances to ++iter;
This commit is contained in:
parent
ec63398042
commit
5c688260d5
8 changed files with 22 additions and 22 deletions
|
|
@ -355,7 +355,7 @@ bool ForestData::castRay( const Point3F &start, const Point3F &end, RayInfo *out
|
|||
shortest.t = F32_MAX;
|
||||
|
||||
BucketTable::ConstIterator iter = mBuckets.begin();
|
||||
for ( ; iter != mBuckets.end(); iter++ )
|
||||
for (; iter != mBuckets.end(); ++iter)
|
||||
{
|
||||
if ( iter->value->castRay( start, end, outInfo, rendered ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue