Ignore empty lines and comments when parsing xsb_aircraft.txt

This commit is contained in:
Roland Winklmeier
2016-12-07 11:41:25 +01:00
committed by Mathew Sutcliffe
parent aa368c45ea
commit db6b3b07fa

View File

@@ -620,6 +620,7 @@ namespace BlackMisc
{
++lineNum;
QString line = in.readLine();
if (line.isEmpty() || line[0] == '#') continue;
auto tokens = splitString(line, [](QChar c) { return c.isSpace(); });
if (!tokens.empty())
{