freebsd-ports/games/openbor4432/files/patch-source_gamelib_packfile.c
Jan Beich 68a8fbed3e games/openbor: update to 3.0.r4504
- Add old slaves for some games (e.g. Ghosts'n Demons) based on
  http://www.chronocrash.com/forum/index.php?topic=2360.0
- Annotate .desktop file with build version
- Drop v3.0 from package version
- s/module/game/ in pkg-message for less ambiguity

Changes:	ba1eb4f...4dfdb66
2017-05-09 20:57:05 +00:00

13 lines
550 B
C

Reset seek position for BGM with more than 64 tracks
--- source/gamelib/packfile.c.orig 2015-04-18 21:22:03 UTC
+++ source/gamelib/packfile.c
@@ -1399,7 +1399,7 @@ void packfile_music_read(fileliststruct
getBasePath(packfile, filelist[i].filename, 1);
if(stristr(packfile, ".pak"))
{
- memset(filelist[i].bgmTracks, 0, 256);
+ memset(filelist[i].bgmTracks, 0, sizeof(filelist[i].bgmTracks));
filelist[i].nTracks = 0;
fd = fopen(packfile, "rb");
if(fd == NULL)