From e0e0fb0d8fb0793a3206b306cb8a6df4da599c6d Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 8 Feb 2021 11:35:03 +0200 Subject: [PATCH] - fixed uninitialized global rolloff in sound engine Depending on SNDINFO definitions, type of global rolloff could left uninitialized, and linear rolloff might be treated as logarithmic https://forum.zdoom.org/viewtopic.php?t=70248 --- src/common/audio/sound/s_soundinternal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/audio/sound/s_soundinternal.h b/src/common/audio/sound/s_soundinternal.h index 11dac776a..cbdeae464 100644 --- a/src/common/audio/sound/s_soundinternal.h +++ b/src/common/audio/sound/s_soundinternal.h @@ -209,7 +209,7 @@ protected: // the complete set of sound effects TArray S_sfx; - FRolloffInfo S_Rolloff; + FRolloffInfo S_Rolloff{}; TArray S_SoundCurve; TMap ResIdMap; TArray S_rnd;