mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
CSound: Initialize all members (fixes #6795)
This commit is contained in:
parent
3d60334d10
commit
69ba84e62c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue