Ref T335, reset to model matching aircraft enables again

This commit is contained in:
Klaus Basan
2018-09-12 16:25:01 +02:00
parent c3fa2ab2f0
commit 640e6ab055

View File

@@ -855,8 +855,9 @@ namespace BlackCore
bool CContextSimulator::resetToModelMatchingAircraft(const CCallsign &callsign)
{
CSimulatedAircraft aircraft = getAircraftInRangeForCallsign(callsign);
CSimulatedAircraft aircraft = this->getAircraftInRangeForCallsign(callsign);
if (aircraft.getCallsign() != callsign) { return false; } // not found
this->updateAircraftEnabled(callsign, true);
aircraft.setModel(aircraft.getNetworkModel());
xCtxAddedRemoteAircraftReadyForModelMatching(aircraft);
return true;