From 89c50f73c735b9bde44a1dd09ec1520c014d67da Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Wed, 13 Sep 2017 17:46:51 +0200 Subject: [PATCH] Fix out of bound array indexing (reverb_vol) Same issue as in a3f9fe52. AudioFrame[3] being indexed at [3] --- scene/3d/audio_stream_player_3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h index 6f32aa46a6b..b729b55f7e6 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -45,7 +45,7 @@ private: float pitch_scale; int bus_index; int reverb_bus_index; - AudioFrame reverb_vol[3]; + AudioFrame reverb_vol[4]; Viewport *viewport; //pointer only used for reference to previous mix Output() {