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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_hangars[hangar].state() == MassState::Empty ||
|
if(_hangars[hangar].state() != MassState::Valid) {
|
||||||
_hangars[hangar].state() == MassState::Invalid) {
|
|
||||||
_lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1);
|
_lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue