]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/navradio.cxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / Instrumentation / navradio.cxx
index bde228991c0786444485f03347c6aa228c3d32e4..780094c42a8eca78df33681a69a2f38329159dbb 100644 (file)
@@ -897,7 +897,8 @@ void FGNavRadio::updateAudio()
   }
   
   last_time = now;
-  play_count = ++play_count % NUM_IDENT_SLOTS;
+  play_count++;
+  play_count %= NUM_IDENT_SLOTS;
     
   // Previous ident is out of time;  if still playing, cut it off:
   _sgr->stop( nav_fx_name );