mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user