From 19b61eec1ecc0d4b0792d37e4a42d7c42b039ab9 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 17 Sep 2003 09:44:37 +0000 Subject: [PATCH] Fix a model loading problem --- src/ATC/AILocalTraffic.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ATC/AILocalTraffic.cxx b/src/ATC/AILocalTraffic.cxx index e1cc3f232..3b04df148 100644 --- a/src/ATC/AILocalTraffic.cxx +++ b/src/ATC/AILocalTraffic.cxx @@ -156,7 +156,7 @@ bool FGAILocalTraffic::Init(string ICAO, OperatingState initialState, PatternLeg string planepath = "Aircraft/c172/Models/c172-dpm.ac"; SGPath path = globals->get_fg_root(); path.append(planepath); - ssgBranch *model = sgLoad3DModel( path.str(), + ssgBranch *model = sgLoad3DModel( globals->get_fg_root(), planepath.c_str(), globals->get_props(), globals->get_sim_time_sec() ); -- 2.39.2