]> git.mxchange.org Git - flightgear.git/commitdiff
a token can be empty (empty line), in which case there's no token[0]
authormfranz <mfranz>
Wed, 11 Jul 2007 15:18:24 +0000 (15:18 +0000)
committermfranz <mfranz>
Wed, 11 Jul 2007 15:18:24 +0000 (15:18 +0000)
src/Scenery/tileentry.cxx

index 0b7ea455dbed3c53419fdbed83914ca3e6630894..2d7e44f2e29c37e1d9e05fd7698f03576754b95f 100644 (file)
@@ -302,7 +302,7 @@ FGTileEntry::load( const string_list &path_list, bool is_base )
             string token;
             in >> token;
 
-            if ( token[0] == '#' ) {
+            if ( token.empty() || token[0] == '#' ) {
                in >> ::skipeol;
                continue;
             }