changeset 10254 | db693bb125a7 |
parent 10253 | fb5cae13863f |
--- a/src/music_gui.cpp Sat Oct 18 13:43:52 2008 +0000 +++ b/src/music_gui.cpp Sat Oct 18 14:11:09 2008 +0000 @@ -118,7 +118,7 @@ _cur_playlist[j] = _playlists[msf.playlist][i]; j++; } - } while (_playlists[msf.playlist][i++] != 0 && i < lengthof(_cur_playlist) - 1); + } while (_playlists[msf.playlist][i++] != 0 && j < lengthof(_cur_playlist) - 1); /* Do not shuffle when on the intro-start window, as the song to play has to be the original TTD Theme*/ if (msf.shuffle && _game_mode != GM_MENU) {