diff --git a/src/blackgui/components/mappingcomponent.cpp b/src/blackgui/components/mappingcomponent.cpp index 569e71769..5edec8cdb 100644 --- a/src/blackgui/components/mappingcomponent.cpp +++ b/src/blackgui/components/mappingcomponent.cpp @@ -309,7 +309,7 @@ namespace BlackGui void CMappingComponent::doMatchingsAgain() { - if (!sGui || !sGui->getISimulator() || !sGui->getISimulator()->isConnected()) { return; } + if (!sGui || !sGui->getIContextSimulator() || !sGui->getISimulator() || !sGui->getISimulator()->isConnected()) { return; } const int reMatchedNo = sGui->getIContextSimulator()->doMatchingsAgain(); CLogMessage(this).info("Triggered re-apping of %1 aircraft") << reMatchedNo; }