mirror of https://github.com/OpenTTD/OpenTTD
Fix 6298b96: Playlist window not drawing playlist
Copy-paste error in change to remove C++11 usage...pull/6803/merge
parent
9fc3212679
commit
336d6cab68
|
@ -539,7 +539,7 @@ struct MusicTrackSelectionWindow : public Window {
|
||||||
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_BLACK);
|
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_BLACK);
|
||||||
|
|
||||||
int y = r.top + WD_FRAMERECT_TOP;
|
int y = r.top + WD_FRAMERECT_TOP;
|
||||||
for (MusicSystem::Playlist::const_iterator song = _music.music_set.begin(); song != _music.music_set.end(); ++song) {
|
for (MusicSystem::Playlist::const_iterator song = _music.active_playlist.begin(); song != _music.active_playlist.end(); ++song) {
|
||||||
SetDParam(0, song->tracknr);
|
SetDParam(0, song->tracknr);
|
||||||
SetDParam(1, 2);
|
SetDParam(1, 2);
|
||||||
SetDParamStr(2, song->songname);
|
SetDParamStr(2, song->songname);
|
||||||
|
|
Loading…
Reference in New Issue