aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index da0098f12..3469a6825 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -442,7 +442,7 @@ void saveAudioDevicesState() {
}
assert(audioOutputArraySize != 0);
- for (i = audioOutputArraySize - 1; i >= 0; --i) {
+ for (i = 0; i < audioOutputArraySize; i++) {
myfprintf(fp, AUDIO_DEVICE_STATE "%d:%s\n",
(int)pdAudioDevicesEnabled[i],
audioOutputArray[i]->name);