1
0
Fork 0

Asserts to pin down a reported crash.

This commit is contained in:
James Turner 2015-12-16 13:02:06 -08:00
parent 64b80b4dab
commit c585f7f7d1

View file

@ -1024,9 +1024,13 @@ void FGGroundController::updateActiveTraffic(TrafficVectorIterator i,
int& priority, int& priority,
time_t now) time_t now)
{ {
assert(i->getAircraft());
assert(i->getAircraft()->getPerformance());
double length = 0; double length = 0;
double vTaxi = (i->getAircraft()->getPerformance()->vTaxi() * SG_NM_TO_METER) / 3600; double vTaxi = (i->getAircraft()->getPerformance()->vTaxi() * SG_NM_TO_METER) / 3600;
FGGroundNetwork* network = dynamics->getGroundNetwork(); FGGroundNetwork* network = dynamics->getGroundNetwork();
assert(network);
i->setPriority(priority++); i->setPriority(priority++);
int pos = i->getCurrentPosition(); int pos = i->getCurrentPosition();