Fix a rare crash by nullpointer

This commit is contained in:
Yamagi Burmeister 2011-10-13 13:16:59 +00:00
parent 1d6872caa7
commit 77de60f274

View file

@ -607,6 +607,12 @@ S_IssuePlaysound ( playsound_t *ps )
ch->pos = 0;
sc = S_LoadSound( ch->sfx );
if (!sc)
{
return;
}
ch->end = paintedtime + sc->length;
/* free the playsound */