check if the reporter is initialized
This commit is contained in:
1 parent
eb05256df7
commit
c6677761dd
1 file changed
+2
-2
+2
-2
@@ -126,8 +126,8 @@ aman::Aircraft* PlugIn::generateAircraftMessage(const EuroScopePlugIn::CRadarTar
|
||||
}
|
||||
|
||||
void PlugIn::OnRadarTargetPositionUpdate(EuroScopePlugIn::CRadarTarget radarTarget) {
|
||||
/* ignore invalid targets */
|
||||
if (false == radarTarget.IsValid())
|
||||
/* do nothing if the reporter is not initialized and ignore invalid targets */
|
||||
if (false == AircraftReporter::instance().initialized() || false == radarTarget.IsValid())
|
||||
return;
|
||||
|
||||
auto flightPlan = radarTarget.GetCorrelatedFlightPlan();
|
||||
|
||||
Reference in new issue
Block a user