mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +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
|
if (!simObject.hasCurrentLightsInSimulator()) { continue; } // wait until we have light state
|
||||||
|
|
||||||
const CCallsign callsign(simObject.getCallsign());
|
const CCallsign callsign(simObject.getCallsign());
|
||||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "missing callsign");
|
const bool hasCs = !callsign.isEmpty();
|
||||||
Q_ASSERT_X(simObject.hasValidRequestAndObjectId(), Q_FUNC_INFO, "Missing ids");
|
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();
|
const DWORD objectId = simObject.getObjectId();
|
||||||
|
|
||||||
// setup
|
// setup
|
||||||
|
|||||||
Reference in New Issue
Block a user