mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 12:45:35 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
a596121ea2
commit
2fc01bc568
@@ -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