fix missing musicpreload range check

This commit is contained in:
ac-stef
2017-04-28 16:55:55 +02:00
parent 68c7ad1fe6
commit deb73081e8
+1 -1
View File
@@ -124,7 +124,7 @@ void audiomanager::musicpreload(int id)
{
if(nosound) return;
stopsound();
if(musicvol && (id>=M_FLAGGRAB && id<=M_LASTMINUTE2))
if(musicvol && (id>=M_FLAGGRAB && id<=M_LASTMINUTE2) && musics.inrange(id))
{
char *name = musics[id];
conoutf("preloading music #%d : %s", id, name);