Explorar o código

Merge pull request #11239 from hpvb/fix-array-oob

Fix out of bound array indexing
Hein-Pieter van Braam %!s(int64=8) %!d(string=hai) anos
pai
achega
933ca6bb8a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;