diff options
| author | Hein-Pieter van Braam | 2017-09-13 17:38:09 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-09-13 17:38:09 +0200 |
| commit | a3f9fe52ec3c3879b1dda581a8e2122c1df8c6ef (patch) | |
| tree | c9dc0660bca1e33c827644fa8a9ce269f1579a44 | |
| parent | 4140e5261c4dd208cc452df8ef416f032543ee91 (diff) | |
| download | godot-a3f9fe52.tar.gz godot-a3f9fe52.tar.zst godot-a3f9fe52.zip | |
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]
| -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 8603cab5a..6f32aa46a 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; |
