Reported by cppcheck: fix an incorrect usage of iterators
This commit is contained in:
parent
687be04678
commit
a853af5b0e
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ wxRadarBg::update_aircraft()
|
|||
diff = _elapsed_time - (*ground_echoes_iterator)->elapsed_time;
|
||||
|
||||
if( diff > _persistance) {
|
||||
ground_echoes.erase(ground_echoes_iterator);
|
||||
ground_echoes.erase(ground_echoes_iterator++);
|
||||
} else {
|
||||
// double test_brg = (*ground_echoes_iterator)->bearing;
|
||||
// double bearing = test_brg * SG_DEGREES_TO_RADIANS;
|
||||
|
|
Loading…
Add table
Reference in a new issue