From acc620bbdaf01856b1d20a5c44cf349ec7bee9a5 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 20 May 2006 19:56:29 +0000 Subject: Save audio output state in correct order. git-svn-id: https://svn.musicpd.org/mpd/trunk@4207 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3