genapts850: fix a bug that can lead to the parser reading beyond one airport definition
and thus create another airport instead.
This commit is contained in:
parent
4293c00b73
commit
9604ec8fad
1 changed files with 2 additions and 2 deletions
|
@ -541,7 +541,7 @@ int Parser::ParseLine(char* line)
|
|||
cur_airport->AddFeature( cur_feat );
|
||||
}
|
||||
cur_feat = NULL;
|
||||
SetState( STATE_NONE );
|
||||
SetState( STATE_PARSE_SIMPLE );
|
||||
}
|
||||
prev_node = NULL;
|
||||
cur_node = NULL;
|
||||
|
@ -583,7 +583,7 @@ int Parser::ParseLine(char* line)
|
|||
delete cur_feat;
|
||||
}
|
||||
cur_feat = NULL;
|
||||
SetState( STATE_NONE );
|
||||
SetState( STATE_PARSE_SIMPLE );
|
||||
}
|
||||
prev_node = NULL;
|
||||
cur_node = NULL;
|
||||
|
|
Loading…
Reference in a new issue