From 4d1e05804febd22173748b9e60d19576ee6639bf Mon Sep 17 00:00:00 2001 From: david Date: Sat, 16 Nov 2002 22:01:15 +0000 Subject: [PATCH] Patch from Frederic Bouvier: I have discovered recently that plib has ulIsAbsolutePathName in ul.lib so you can try this patch. --- src/Model/model.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {