music_mod.c
changeset 479 3d8a5a7b1249
parent 478 a928714c28dc
child 518 8bc9b5fd2aae
     1.1 --- a/music_mod.c	Sat Nov 14 20:38:24 2009 +0000
     1.2 +++ b/music_mod.c	Sat Nov 14 20:44:30 2009 +0000
     1.3 @@ -220,6 +220,11 @@
     1.4  {
     1.5  	MODULE *module;
     1.6  
     1.7 +	/* Make sure the mikmod library is loaded */
     1.8 +	if ( !Mix_Init(MIX_INIT_MOD) ) {
     1.9 +		return NULL;
    1.10 +	}
    1.11 +
    1.12  	module = MikMod_LoadSongRW(rw,64);
    1.13  	if (!module) {
    1.14  		Mix_SetError("%s", mikmod.MikMod_strerror(*mikmod.MikMod_errno));