mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #402, post merge feedback by MS
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BlackCore
|
||||
|
||||
CAirspaceMonitor::CAirspaceMonitor(QObject *parent, const BlackMisc::Simulation::IOwnAircraftProviderReadOnly *ownAircraftProvider, INetwork *network, CVatsimBookingReader *bookings, CVatsimDataFileReader *dataFile)
|
||||
: QObject(parent),
|
||||
COwnAircraftProviderSupportReadOnly(ownAircraftProvider),
|
||||
COwnAircraftAwareReadOnly(ownAircraftProvider),
|
||||
m_network(network), m_vatsimBookingReader(bookings), m_vatsimDataFileReader(dataFile),
|
||||
m_atcWatchdog(this), m_aircraftWatchdog(this)
|
||||
{
|
||||
@@ -144,8 +144,7 @@ namespace BlackCore
|
||||
CSimulatedAircraft aircraft = m_aircraftInRange.findFirstByCallsign(callsign);
|
||||
if (!aircraft.hasValidCallsign()) { return false; }
|
||||
|
||||
CAircraftModel newModel(model);
|
||||
aircraft.setModel(newModel); // this consolidates all common data such as callsign, ICAO ...
|
||||
aircraft.setModel(model); // this consolidates all common data such as callsign, ICAO ...
|
||||
|
||||
CPropertyIndexVariantMap vm(CSimulatedAircraft::IndexModel, aircraft.getModel().toCVariant());
|
||||
int c = m_aircraftInRange.applyIfCallsign(callsign, vm);
|
||||
|
||||
Reference in New Issue
Block a user