mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
No ASSERT when missing callsign/ids, VERIFY is enough
This commit is contained in:
committed by
Mat Sutcliffe
parent
ad22d8b45b
commit
7340301c29
@@ -1942,8 +1942,11 @@ namespace BlackSimPlugin
|
||||
if (!simObject.hasCurrentLightsInSimulator()) { continue; } // wait until we have light state
|
||||
|
||||
const CCallsign callsign(simObject.getCallsign());
|
||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "missing callsign");
|
||||
Q_ASSERT_X(simObject.hasValidRequestAndObjectId(), Q_FUNC_INFO, "Missing ids");
|
||||
const bool hasCs = !callsign.isEmpty();
|
||||
const bool hasValidIds = simObject.hasValidRequestAndObjectId();
|
||||
BLACK_VERIFY_X(hasCs, Q_FUNC_INFO, "missing callsign");
|
||||
BLACK_AUDIT_X(hasValidIds, Q_FUNC_INFO, "Missing ids");
|
||||
if (!hasCs || !hasValidIds) { continue; } // not supposed to happen
|
||||
const DWORD objectId = simObject.getObjectId();
|
||||
|
||||
// setup
|
||||
|
||||
Reference in New Issue
Block a user