From 97945e56763fc3c2e6e035e93b20a22e826e7228 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 21 Aug 2020 18:22:21 +0100 Subject: [PATCH] Issue #79 Restore error message for unknown models This was lost due to the model string case sensitivity lookup step. --- src/xswiftbus/traffic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xswiftbus/traffic.cpp b/src/xswiftbus/traffic.cpp index 2f7163f76..332ee71f5 100644 --- a/src/xswiftbus/traffic.cpp +++ b/src/xswiftbus/traffic.cpp @@ -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