a token can be empty (empty line), in which case there's no token[0]
This commit is contained in:
parent
94326d14af
commit
1e6fa7d2a5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue