music.c
changeset 408 fc6c4861e8ec
parent 407 73a92ea2c061
child 411 cade1e3a4cb8
     1.1 --- a/music.c	Fri Oct 02 14:16:12 2009 +0000
     1.2 +++ b/music.c	Sat Oct 03 03:35:05 2009 +0000
     1.3 @@ -1505,17 +1505,14 @@
     1.4  }
     1.5  MODULE *MikMod_LoadSongRW(SDL_RWops *rw, int maxchan)
     1.6  {
     1.7 -	LMM_MREADER lmmmr={
     1.8 -		LMM_Seek,
     1.9 -		LMM_Tell,
    1.10 -		LMM_Read,
    1.11 -		LMM_Get,
    1.12 -		LMM_Eof,
    1.13 +	LMM_MREADER lmmmr = {
    1.14 +		{ LMM_Seek, LMM_Tell, LMM_Read, LMM_Get, LMM_Eof },
    1.15  		0,
    1.16  		0,
    1.17 -		rw
    1.18 +		0
    1.19  	};
    1.20  	MODULE *m;
    1.21 +        lmmmr.rw = rw;
    1.22  	lmmmr.offset=SDL_RWtell(rw);
    1.23  	SDL_RWseek(rw,0,SEEK_END);
    1.24  	lmmmr.eof=SDL_RWtell(rw);