From: ehofman Date: Wed, 17 Sep 2003 09:44:37 +0000 (+0000) Subject: Fix a model loading problem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=19b61eec1ecc0d4b0792d37e4a42d7c42b039ab9;p=flightgear.git Fix a model loading problem --- 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() );