mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Fix crash when launching doom classic game
Nulling XAUDIO2_VOICE_STATE struct before using, so it's eliminate "uninitializing variable" crash when pMusicSourceVoice is NULL.
This commit is contained in:
parent
259d71da41
commit
65a44fe5ad
1 changed files with 1 additions and 1 deletions
|
@ -957,7 +957,7 @@ void I_PlaySong( const char *songname, int looping)
|
|||
bool isStopped = false;
|
||||
int d = 0;
|
||||
while ( !isStopped ) {
|
||||
XAUDIO2_VOICE_STATE test;
|
||||
XAUDIO2_VOICE_STATE test = {};
|
||||
|
||||
if ( pMusicSourceVoice != NULL ) {
|
||||
pMusicSourceVoice->GetState( &test );
|
||||
|
|
Loading…
Reference in a new issue