]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a model loading problem
authorehofman <ehofman>
Wed, 17 Sep 2003 09:44:37 +0000 (09:44 +0000)
committerehofman <ehofman>
Wed, 17 Sep 2003 09:44:37 +0000 (09:44 +0000)
src/ATC/AILocalTraffic.cxx

index e1cc3f232c3fb7a6d8d7d754f1262a549a4a06d7..3b04df148435ed291d7c7f117f9656939826d409 100644 (file)
@@ -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() );