Fix assert caused by wrong function call

This commit is contained in:
Roland Winklmeier
2018-08-09 22:10:35 +02:00
parent 943aab837c
commit cd701c2a95

View File

@@ -230,7 +230,7 @@ namespace BlackGui
IContextSimulator *CSimulatedAircraftView::simulatorContext()
{
if (!sGui || sGui->isShuttingDown() || !sGui->getISimulator()) { return nullptr; }
if (!sGui || sGui->isShuttingDown() || !sGui->getIContextSimulator()) { return nullptr; }
return sGui->getIContextSimulator();
}