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 {