]> git.mxchange.org Git - flightgear.git/commitdiff
Asserts to pin down a reported crash.
authorJames Turner <zakalawe@mac.com>
Wed, 16 Dec 2015 21:02:06 +0000 (13:02 -0800)
committerJames Turner <zakalawe@mac.com>
Wed, 16 Dec 2015 21:02:06 +0000 (13:02 -0800)
src/ATC/GroundController.cxx

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