diff --git a/docs/rh-log.txt b/docs/rh-log.txt index f497a0ac8..014236c75 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ June 8, 2009 +- Fixed: The initial play of a GME song always started track 0. - Fixed: The RAWINPUT buffer that GetRawInputData() fills in is 40 bytes on Win32 but 48 bytes on Win64, so Raw Mouse on x64 builds was getting random data off the stack because I also interpreted the error return incorrectly. diff --git a/src/sound/music_gme.cpp b/src/sound/music_gme.cpp index 23fe38d33..08700c8b3 100644 --- a/src/sound/music_gme.cpp +++ b/src/sound/music_gme.cpp @@ -201,7 +201,7 @@ void GMESong::Play(bool looping, int track) { m_Status = STATE_Stopped; m_Looping = looping; - if (StartTrack(0) && m_Stream->Play(looping, 1)) + if (StartTrack(track) && m_Stream->Play(looping, 1)) { m_Status = STATE_Playing; }