- Added NULL check to S_StopSound

- Removed XLATCC references from wadsrc/makefile.mgw.


SVN r827 (trunk)
This commit is contained in:
Christoph Oelckers 2008-03-21 11:48:25 +00:00
commit d3e34d1edd
2 changed files with 4 additions and 5 deletions

View file

@ -1024,7 +1024,7 @@ void S_StopSound (fixed_t *pt, int channel)
void S_StopSound (AActor *ent, int channel)
{
// No need to search every channel if we know it's not playing anything.
if (ent->SoundChans & (1 << channel))
if (ent != NULL && ent->SoundChans & (1 << channel))
{
S_StopSound (&ent->x, channel);
}