From: david Date: Sat, 16 Nov 2002 22:01:15 +0000 (+0000) Subject: Patch from Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d1e05804febd22173748b9e60d19576ee6639bf;p=flightgear.git Patch from Frederic Bouvier: I have discovered recently that plib has ulIsAbsolutePathName in ul.lib so you can try this patch. --- diff --git a/src/Model/model.cxx b/src/Model/model.cxx index fd1ea0095..ef18cf36e 100644 --- a/src/Model/model.cxx +++ b/src/Model/model.cxx @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -253,7 +254,7 @@ fgLoad3DModel (const string &path) // Load the 3D aircraft object itself SGPath xmlpath; SGPath modelpath = path; - if ( path[ 0 ] == '/' || path[ 0 ] == '\\' || ( isalpha( path[ 0 ] ) && path[ 1 ] == ':' ) ) { + if ( ulIsAbsolutePathName( path.c_str() ) ) { xmlpath = modelpath; } else {