diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx index a5ad521d..35aabab9 100644 --- a/simgear/sound/sample_openal.hxx +++ b/simgear/sound/sample_openal.hxx @@ -158,7 +158,7 @@ public: * Schedule this audio sample to stop (or start) playing. */ inline void set_out_of_range(bool oor = true) { - _out_of_range = oor; _playing = oor ? false : true; _changed = true; + _out_of_range = oor; _playing = (!oor && _loop); _changed = true; } /**