From ccc375f16334d0eb8d56d5e5f2b248ef1ee55258 Mon Sep 17 00:00:00 2001 From: Maganty Rushyendra Date: Sat, 24 Apr 2021 11:06:28 -0400 Subject: Fix AudioServer Crash when bus count equals 0 --- servers/audio_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 138cb6e1f8..08c482553b 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -246,6 +246,7 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) { init_channels_and_buffers(); } + ERR_FAIL_COND_MSG(buses.is_empty() && todo, "AudioServer bus count is less than 1."); while (todo) { if (to_mix == 0) { _mix_step(); -- cgit v1.2.3