Ref T709, style

This commit is contained in:
Klaus Basan
2019-08-09 23:38:26 +02:00
committed by Mat Sutcliffe
parent a596121ea2
commit 2fc01bc568
3 changed files with 16 additions and 15 deletions

View File

@@ -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; }