Skip to content

Commit

Permalink
Fixing off-by-one error with custom music playback in SMPSCFG.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Mar 8, 2015
1 parent fc8f11a commit 8568f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMPSCFG/MainForm.cs
Expand Up @@ -118,7 +118,7 @@ private void MainForm_Load(object sender, EventArgs e)
ptr = GetProcAddress(hModule, "RegisterSongStoppedCallback");
((RegisterSongStoppedCallbackDelegate)Marshal.GetDelegateForFunctionPointer(ptr, typeof(RegisterSongStoppedCallbackDelegate)))(SongStoppedCallback);
ptr = GetProcAddress(hModule, "GetCustomSongs");
GetCustomSongs(songCount, ptr);
GetCustomSongs(++songCount, ptr);
}
for (int gn = 0; gn < GameIDs.Length; gn++)
{
Expand Down

0 comments on commit 8568f23

Please sign in to comment.