From 29ef561ed9d2413e01b0bcda23896f32831c1184 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 19 Nov 2015 21:37:03 +0000 Subject: [PATCH] Fix some inverted logic - spotted by Thomas Geymayer! --- src/Main/fg_init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 78a93bbe3..2d34b8fc3 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -546,7 +546,7 @@ int fgInitAircraft(bool reinit) // code in FindAndCacheAircraft works as normal // note since we may be using a variant, we can't use the package ID size_t lastDot = aircraftId.rfind('.'); - if (lastDot == std::string::npos) { + if (lastDot != std::string::npos) { aircraftId = aircraftId.substr(lastDot + 1); } aircraftProp->setStringValue(aircraftId); -- 2.39.5