Skip to content

Commit

Permalink
better fix for bug #4107
Browse files Browse the repository at this point in the history
handles cases where lmmmr->offset != 0.
  • Loading branch information
sezero committed May 11, 2018
1 parent 02239aa commit c6fa5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_mikmod.c
Expand Up @@ -254,7 +254,7 @@ int LMM_Seek(struct MREADER *mr,long to,int dir)
if (offset < lmmmr->offset)
return -1;
}
return (SDL_RWseek(lmmmr->src, offset, dir) < 0) ? -1 : 0;
return (SDL_RWseek(lmmmr->src, offset, dir) < lmmmr->offset)? -1 : 0;
}
long LMM_Tell(struct MREADER *mr)
{
Expand Down

0 comments on commit c6fa5cf

Please sign in to comment.