mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
e62aa6fb2f
commit
e908593847
@@ -822,8 +822,9 @@ namespace XSwiftBus
|
||||
|
||||
int CTraffic::getPlaneData(void *id, int dataType, void *io_data)
|
||||
{
|
||||
auto planeIt = m_planesById.find(id);
|
||||
assert(planeIt != m_planesById.end());
|
||||
const auto planeIt = m_planesById.find(id);
|
||||
// assert(planeIt != m_planesById.end());
|
||||
if (planeIt == m_planesById.end()) { return xpmpData_Unavailable; } // less drastic version
|
||||
Plane *plane = planeIt->second;
|
||||
if (!plane) { return xpmpData_Unavailable; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user