CSound: Initialize all members (fixes #6795)

This commit is contained in:
Dennis Felsing 2023-07-01 19:50:20 +02:00
parent 3d60334d10
commit 69ba84e62c
2 changed files with 6 additions and 0 deletions

View file

@ -275,6 +275,11 @@ static void SdlCallback(void *pUnused, Uint8 *pStream, int Len)
#endif
}
CSound::CSound() :
m_SoundEnabled(false), m_Device(0), m_pGraphics(nullptr), m_pStorage(nullptr)
{
}
int CSound::Init()
{
m_SoundEnabled = false;

View file

@ -28,6 +28,7 @@ class CSound : public IEngineSound
static int DecodeOpus(int SampleID, const void *pData, unsigned DataSize);
public:
CSound();
int Init() override;
int Update() override;
void Shutdown() override;