1
0
Fork 0

Changed to use getId() instead of using a direct iterator comparison,

because MSVC8 crashed on that.
This commit is contained in:
durk 2007-11-17 13:46:35 +00:00
parent 3393934b0f
commit 1acc536de1

View file

@ -883,7 +883,7 @@ void FGGroundNetwork::checkSpeedAdjustment(int id, double lat,
return;
else
current->setWaitsForId(closest->getId());
if (closest != current)
if (closest->getId() != current->getId())
current->setSpeedAdjustment(closest->getSpeed()* (mindist/100));
else
current->setSpeedAdjustment(0); // This can only happen when the user aircraft is the one closest
@ -942,7 +942,7 @@ void FGGroundNetwork::checkHoldPosition(int id, double lat,
for (i = activeTraffic.begin();
i != activeTraffic.end(); i++)
{
if (i != current)
if (i->getId() != current->getId())
{
int node = current->crosses(this, *i);
if (node != -1)