summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-26 11:56:20 +0200
committerGitHub <noreply@github.com>2021-04-26 11:56:20 +0200
commit2a1a083929692caafb8144a2700919cbb886e063 (patch)
tree380aa3bac40a9835a9d5975bb3a26e3f315ea4a7 /servers
parent15a85fe9713668f8ba6143352fd27d419a96ba83 (diff)
parentccc375f16334d0eb8d56d5e5f2b248ef1ee55258 (diff)
Merge pull request #48162 from mrushyendra/fix_audioserver_crash
Fix AudioServer Crash when no buses present
Diffstat (limited to 'servers')
-rw-r--r--servers/audio_server.cpp1
1 files changed, 1 insertions, 0 deletions
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();