From: James Turner Date: Thu, 19 Nov 2015 21:37:03 +0000 (+0000) Subject: Fix some inverted logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=29ef561ed9d2413e01b0bcda23896f32831c1184;p=flightgear.git Fix some inverted logic - spotted by Thomas Geymayer! --- 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);