]> git.mxchange.org Git - flightgear.git/commitdiff
Fix some inverted logic
authorJames Turner <zakalawe@mac.com>
Thu, 19 Nov 2015 21:37:03 +0000 (21:37 +0000)
committerJames Turner <zakalawe@mac.com>
Fri, 20 Nov 2015 21:28:19 +0000 (21:28 +0000)
- spotted by Thomas Geymayer!

src/Main/fg_init.cxx

index 78a93bbe31f68701f17ab89d7b28cd350e3a5d93..2d34b8fc357fd4389236b3808e57f8c4e0dc9cad 100644 (file)
@@ -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);