From e9386f676a145732407283d537db0a01e482e983 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 17 Oct 2018 23:36:46 +0200 Subject: [PATCH] Fixed issue seen in crash report --- src/blackgui/components/mappingcomponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }