Ref T219, added some utility functions in value classes

This commit is contained in:
Klaus Basan
2018-01-07 03:09:54 +01:00
parent b982b7aca6
commit 93d1dcfc1d
7 changed files with 29 additions and 7 deletions

View File

@@ -88,8 +88,8 @@ namespace BlackMisc
bool CSimulatedAircraft::isValidForLogin() const
{
if (m_callsign.asString().isEmpty()) { return false; }
if (!m_pilot.isValid()) { return false; }
if (m_callsign.isEmpty()) { return false; }
if (m_pilot.isNull()) { return false; }
return true;
}