MassManager: shorten this if.
This commit is contained in:
parent
045aaa8dad
commit
0bb3be13fe
1 changed files with 1 additions and 2 deletions
|
@ -125,8 +125,7 @@ auto MassManager::exportMass(int hangar) -> bool {
|
|||
return false;
|
||||
}
|
||||
|
||||
if(_hangars[hangar].state() == MassState::Empty ||
|
||||
_hangars[hangar].state() == MassState::Invalid) {
|
||||
if(_hangars[hangar].state() != MassState::Valid) {
|
||||
_lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue