Pārlūkot izejas kodu

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]
Hein-Pieter van Braam 8 gadi atpakaļ
vecāks
revīzija
a3f9fe52ec
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      scene/3d/audio_stream_player_3d.h

+ 1 - 1
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;