diff options
-rw-r--r-- | apps/plugins/mikmod/load_stm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/mikmod/load_stm.c b/apps/plugins/mikmod/load_stm.c index b2537ab68f..994b0e5355 100644 --- a/apps/plugins/mikmod/load_stm.c +++ b/apps/plugins/mikmod/load_stm.c | |||
@@ -299,6 +299,8 @@ static int STM_Load(int curious) | |||
299 | /* set module variables */ | 299 | /* set module variables */ |
300 | for(t=0;t<STM_NTRACKERS;t++) | 300 | for(t=0;t<STM_NTRACKERS;t++) |
301 | if(!memcmp(mh->trackername,STM_Signatures[t],8)) break; | 301 | if(!memcmp(mh->trackername,STM_Signatures[t],8)) break; |
302 | if(t == STM_NTRACKERS) | ||
303 | return 0; | ||
302 | of.modtype = StrDup(STM_Version[t]); | 304 | of.modtype = StrDup(STM_Version[t]); |
303 | of.songname = DupStr(mh->songname,20,1); /* make a cstr of songname */ | 305 | of.songname = DupStr(mh->songname,20,1); /* make a cstr of songname */ |
304 | of.numpat = mh->numpat; | 306 | of.numpat = mh->numpat; |