Skip to content

Commit d62be8d

Browse files
committed
Return the correct value from audio_destroy_stream
1 parent 78cb00a commit d62be8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/functions/Function_Sound.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3112,9 +3112,12 @@ function audio_destroy_stream(_soundid)
31123112
audio_stop_sound(_soundid);
31133113
audio_sampledata[_soundid] = null;
31143114
}
3115+
3116+
return 1;
31153117
}
3116-
}
31173118

3119+
return -1;
3120+
}
31183121

31193122
function allocateBufferSound( )
31203123
{

0 commit comments

Comments
 (0)