Fix a crash when entering water with s_openal = 0
This commit is contained in:
parent
9ec98a79d2
commit
61b10f12da
|
@ -429,6 +429,11 @@ void AL_Overwater()
|
|||
{
|
||||
int i;
|
||||
|
||||
if (sound_started != SS_OAL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Apply to all sources
|
||||
for (i = 0; i < s_numchannels; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue