Treat an OBJ8_AIRCRAFT command with too many arguments as merely a warning.

The aircraft can still be successfully loaded.
This commit is contained in:
Mat Sutcliffe
2019-04-30 01:52:49 +01:00
committed by Klaus Basan
parent 61d933be12
commit 9c07326462
2 changed files with 6 additions and 3 deletions

View File

@@ -499,9 +499,12 @@ namespace BlackMisc
// OBJ8_AIRCRAFT <path>
if (tokens.size() != 2)
{
const CStatusMessage m = CStatusMessage(this).error(u"%1/xsb_aircraft.txt Line %2 : OBJ8_AIRCARFT command requires 1 argument.") << path << lineNum;
const CStatusMessage m = CStatusMessage(this).warning(u"%1/xsb_aircraft.txt Line %2 : OBJ8_AIRCARFT command requires 1 argument.") << path << lineNum;
m_loadingMessages.push_back(m);
return false;
if (tokens.size() < 2)
{
return false;
}
}
return true;
}