summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-06-24 23:36:55 +0200
committerMichael Lutz <michi@icosahedron.de>2018-06-25 00:00:56 +0200
commit336d6cab68c29c4b3960dd70826082b35a6fff2a (patch)
tree545a0c3a0d3eb8e2a1ed38b99ebc7247bf7b7b82 /src
parent9fc32126790e6e8a558c95f403cde759a5c2cd8b (diff)
downloadopenttd-336d6cab68c29c4b3960dd70826082b35a6fff2a.tar.xz
Fix 6298b96: Playlist window not drawing playlist
Copy-paste error in change to remove C++11 usage...
Diffstat (limited to 'src')
-rw-r--r--src/music_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 1edfbab41..e7552fe02 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -539,7 +539,7 @@ struct MusicTrackSelectionWindow : public Window {
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_BLACK);
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(1, 2);
SetDParamStr(2, song->songname);