فهرست منبع

Fix out of bound array indexing (reverb_vol)

Same issue as in a3f9fe52. AudioFrame[3] being indexed at [3]
Hein-Pieter van Braam 8 سال پیش
والد
کامیت
89c50f73c7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      scene/3d/audio_stream_player_3d.h

+ 1 - 1
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() {