1
0
Fork 0

Fix some inverted logic

- spotted by Thomas Geymayer!
This commit is contained in:
James Turner 2015-11-19 21:37:03 +00:00
parent fdf4a61ed5
commit 29ef561ed9

View 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);