Fix some inverted logic
- spotted by Thomas Geymayer!
This commit is contained in:
parent
fdf4a61ed5
commit
29ef561ed9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue