]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/tower.cxx
This innocuous looking typo was crashing the sim whenever an AI plane was asked to...
[flightgear.git] / src / ATC / tower.cxx
index 49395a09cc58296eb87851b6df5fa958d0ea1043..adb8aee509693574baae34bc6fd5370df52bc47d 100644 (file)
@@ -658,7 +658,7 @@ void FGTower::ProcessDownwindReport(TowerPlaneRec* t) {
                trns += s;
                if((tt->opType) == CIRCUIT) {
                        PatternLeg leg;
-                       if(t->isUser) {
+                       if(tt->isUser) {
                                leg = tt->leg;
                        } else {
                                leg = tt->planePtr->GetLeg();