diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-13 17:38:09 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-13 17:38:09 +0200 |
commit | a3f9fe52ec3c3879b1dda581a8e2122c1df8c6ef (patch) | |
tree | c9dc0660bca1e33c827644fa8a9ce269f1579a44 /scene/3d | |
parent | 4140e5261c4dd208cc452df8ef416f032543ee91 (diff) |
Fix out of bound array indexing
730d36f350 introduced introduced some code that indexes AudioFrame[3],
it is however defined as AudioFrame[3]. This increases the size to [4]
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/audio_stream_player_3d.h | 2 |
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 8603cab5a4..6f32aa46a6 100644 --- a/scene/3d/audio_stream_player_3d.h +++ b/scene/3d/audio_stream_player_3d.h @@ -40,7 +40,7 @@ private: AudioFilterSW filter; AudioFilterSW::Processor filter_process[6]; - AudioFrame vol[3]; + AudioFrame vol[4]; float filter_gain; float pitch_scale; int bus_index; |