From c585f7f7d1f06fa9a587cbf96e6c08527549e47b Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 16 Dec 2015 13:02:06 -0800 Subject: [PATCH] Asserts to pin down a reported crash. --- src/ATC/GroundController.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ATC/GroundController.cxx b/src/ATC/GroundController.cxx index 17b06b340..1e25e971a 100644 --- a/src/ATC/GroundController.cxx +++ b/src/ATC/GroundController.cxx @@ -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(); -- 2.39.5