diff options
author | kobewi <kobewi4e@gmail.com> | 2022-10-18 18:47:44 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-10-19 00:05:48 +0200 |
commit | d06a8320e5d5117f8a057da16d33443f410a5d9f (patch) | |
tree | 895f507322e9b4371c6fd7141e2c6d3d3c67278a /servers/audio/audio_effect.cpp | |
parent | 4a96fce801cae2d3e0fe42005c74ca7d60cc1582 (diff) | |
download | redot-engine-d06a8320e5d5117f8a057da16d33443f410a5d9f.tar.gz |
Simplify GDVIRTUAL_CALL calls
Diffstat (limited to 'servers/audio/audio_effect.cpp')
-rw-r--r-- | servers/audio/audio_effect.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/servers/audio/audio_effect.cpp b/servers/audio/audio_effect.cpp index f38d0adfb2..ef0e3197e1 100644 --- a/servers/audio/audio_effect.cpp +++ b/servers/audio/audio_effect.cpp @@ -36,11 +36,9 @@ void AudioEffectInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_ } } bool AudioEffectInstance::process_silence() const { - bool ret; - if (GDVIRTUAL_CALL(_process_silence, ret)) { - return ret; - } - return false; + bool ret = false; + GDVIRTUAL_CALL(_process_silence, ret); + return ret; } void AudioEffectInstance::_bind_methods() { |