Skip to content

Commit

Permalink
Add additional check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendovsky committed Dec 31, 2022
1 parent f434b38 commit 85d29c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/sound/snd_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ void idSoundSample::PurgeSoundSample() {
{
openalSource_t& openalSource = soundSystemLocal.openalSources[i];

if (!openalSource.inUse)
if (!openalSource.inUse || openalSource.chan == NULL)
{
continue;
}
Expand Down

0 comments on commit 85d29c5

Please sign in to comment.