mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
(svn r14485) -Fix (r5464): Do not check the end of destination buffer using the source pointer.
Did not cause trouble though as destination buffer has always been bigger than source buffer.
This commit is contained in:
parent
63a9ddeb77
commit
f2eba8b0bf
@ -118,7 +118,7 @@ static void SelectSongToPlay()
|
||||
_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) {
|
||||
|
Loading…
Reference in New Issue
Block a user