Issue #79 Restore error message for unknown models

This was lost due to the model string case sensitivity lookup step.
This commit is contained in:
Mat Sutcliffe
2020-08-21 18:22:21 +01:00
parent a43b8b00bc
commit 97945e5676

View File

@@ -305,6 +305,7 @@ namespace XSwiftBus
XPMPPlaneID id = nullptr;
if (modelName.empty() || m_modelStrings.count(modelName) == 0)
{
DEBUG_LOG("Model " + modelName + " is unknown, falling back to basic xpmp2 model matching");
id = XPMPCreatePlane(aircraftIcao.c_str(), airlineIcao.c_str(), livery.c_str());
}
else