summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-09-13 17:46:51 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2017-09-13 17:47:51 +0200
commit89c50f73c735b9bde44a1dd09ec1520c014d67da (patch)
treef67f5d6d63a80504c5ef041439ff5273f6ee6269 /scene/3d
parenta3f9fe52ec3c3879b1dda581a8e2122c1df8c6ef (diff)
Fix out of bound array indexing (reverb_vol)
Same issue as in a3f9fe52. AudioFrame[3] being indexed at [3]
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/audio_stream_player_3d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h
index 6f32aa46a6..b729b55f7e 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() {