- Added NULL check to S_StopSound
- Removed XLATCC references from wadsrc/makefile.mgw. SVN r827 (trunk)
This commit is contained in:
parent
10920ffe75
commit
d3e34d1edd
2 changed files with 4 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue