diff --git a/src/xswiftbus/traffic.cpp b/src/xswiftbus/traffic.cpp index 87378ab66..5d9b92b11 100644 --- a/src/xswiftbus/traffic.cpp +++ b/src/xswiftbus/traffic.cpp @@ -212,6 +212,9 @@ namespace XSwiftBus void CTraffic::addPlane(const std::string &callsign, const std::string &modelName, const std::string &aircraftIcao, const std::string &airlineIcao, const std::string &livery) { + auto planeIt = m_planesByCallsign.find(callsign); + if (planeIt != m_planesByCallsign.end()) { return; } + XPMPPlaneID id = nullptr; if (modelName.empty()) {