1
0
Fork 0

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:
Christian Schmitt 2012-08-09 18:31:47 +02:00
parent 4293c00b73
commit 9604ec8fad

View file

@ -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;