mirror of
https://github.com/SWG-Source/src.git
synced 2026-10-05 22:12:52 -04:00
more partial reverts of inadvisable changes from i++ to ++i, per pvs-studio...i'll ignore that type of advice from now on as i wasn't considering the consequences
This commit is contained in:
Executable → Regular
+4
-4
@@ -258,7 +258,7 @@ void AiMovementPathFollow::popNodeBack ( void )
|
||||
|
||||
AiPath::iterator it = m_path->end();
|
||||
|
||||
--it;
|
||||
it--;
|
||||
|
||||
m_path->erase(it);
|
||||
}
|
||||
@@ -293,7 +293,7 @@ void AiMovementPathFollow::swapPath ( AiPath * newPath )
|
||||
AiPath::iterator it;
|
||||
|
||||
#ifdef _DEBUG
|
||||
for(it = m_path->begin(); it != m_path->end(); ++it)
|
||||
for(it = m_path->begin(); it != m_path->end(); it++)
|
||||
{
|
||||
sendEraseWaypoint(*it);
|
||||
}
|
||||
@@ -303,7 +303,7 @@ void AiMovementPathFollow::swapPath ( AiPath * newPath )
|
||||
|
||||
m_path->swap(*newPath);
|
||||
|
||||
for(it = m_path->begin(); it != m_path->end(); ++it)
|
||||
for(it = m_path->begin(); it != m_path->end(); it++)
|
||||
{
|
||||
(*it).detach();
|
||||
|
||||
@@ -323,7 +323,7 @@ void AiMovementPathFollow::clearPath ( void )
|
||||
{
|
||||
AiPath::iterator it;
|
||||
|
||||
for(it = m_path->begin(); it != m_path->end(); ++it)
|
||||
for(it = m_path->begin(); it != m_path->end(); it++)
|
||||
{
|
||||
sendEraseWaypoint(*it);
|
||||
}
|
||||
|
||||
Executable → Regular
+1
-1
@@ -45,7 +45,7 @@ void updateQueue ( BuildQueue * queue, PerformanceTimer const & timer, float tim
|
||||
currentBuilder->update();
|
||||
|
||||
BuildQueue::iterator old = it;
|
||||
++it;
|
||||
it++;
|
||||
|
||||
if(currentBuilder->buildDone())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user