- 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
This commit is contained in:
alexey.lysiuk 2021-02-08 11:35:03 +02:00
parent 917eb2b5e3
commit e0e0fb0d8f

View file

@ -209,7 +209,7 @@ protected:
// the complete set of sound effects
TArray<sfxinfo_t> S_sfx;
FRolloffInfo S_Rolloff;
FRolloffInfo S_Rolloff{};
TArray<uint8_t> S_SoundCurve;
TMap<int, int> ResIdMap;
TArray<FRandomSoundList> S_rnd;