Fixed staggered update

This commit is contained in:
Klaus Basan
2019-04-30 21:06:48 +02:00
parent eba5b1924b
commit 8df7404f2b

View File

@@ -868,7 +868,7 @@ namespace BlackCore
QPointer<CAirspaceMonitor> myself(this); QPointer<CAirspaceMonitor> myself(this);
for (const CSimulatedAircraft &ac : aircraft) for (const CSimulatedAircraft &ac : aircraft)
{ {
QTimer::singleShot(c * 25, this, [ = ] QTimer::singleShot(c++ * 25, this, [ = ]
{ {
if (!myself) { return; } if (!myself) { return; }
myself->addNewAircraftInRange(ac); myself->addNewAircraftInRange(ac);