From 22d8f5a72cc374cc355542f79409aed6e942e670 Mon Sep 17 00:00:00 2001 From: daveluff Date: Mon, 22 Mar 2004 22:09:47 +0000 Subject: [PATCH] Fix another possible ATC stackdump --- src/ATC/tower.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ATC/tower.cxx b/src/ATC/tower.cxx index c4ccc96bb..b68bd53ed 100644 --- a/src/ATC/tower.cxx +++ b/src/ATC/tower.cxx @@ -649,13 +649,19 @@ void FGTower::ProcessDownwindReport(TowerPlaneRec* t) { s = s.substr(0,p); trns += s; if((tt->opType) == CIRCUIT) { - if(tt->planePtr->GetLeg() == FINAL) { + PatternLeg leg; + if(t->isUser) { + leg = tt->leg; + } else { + leg = tt->planePtr->GetLeg(); + } + if(leg == FINAL) { trns += " on final"; - } else if(tt->planePtr->GetLeg() == TURN4) { + } else if(leg == TURN4) { trns += " turning final"; - } else if(tt->planePtr->GetLeg() == BASE) { + } else if(leg == BASE) { trns += " on base"; - } else if(tt->planePtr->GetLeg() == TURN3) { + } else if(leg == TURN3) { trns += " turning base"; } } else { -- 2.39.5