Browse Source

Initialize FMOD pointers to NULL, so that the validation checks will also work correctly in Release builds

console
Nico de Poel 5 years ago
parent
commit
b36a292fbc
  1. 8
      engine/Quake/bgmusic.c
  2. 2
      engine/Quake/snd_fmod.c

8
engine/Quake/bgmusic.c

@ -39,10 +39,10 @@ static qboolean no_extmusic = false;
static float old_volume = -1.0f; static float old_volume = -1.0f;
extern FMOD_SYSTEM *fmod_system; extern FMOD_SYSTEM *fmod_system;
FMOD_CHANNELGROUP *bgm_channelGroup;
FMOD_CHANNEL *bgm_channel;
FMOD_SOUND *bgm_sound;
byte *bgm_data;
FMOD_CHANNELGROUP *bgm_channelGroup = NULL;
FMOD_CHANNEL *bgm_channel = NULL;
FMOD_SOUND *bgm_sound = NULL;
byte *bgm_data = NULL;
static const char *extensions[] = static const char *extensions[] =
{ {

2
engine/Quake/snd_fmod.c

@ -4,6 +4,6 @@
#include "fmod.h" #include "fmod.h"
#include "fmod_errors.h" #include "fmod_errors.h"
FMOD_SYSTEM *fmod_system;
FMOD_SYSTEM *fmod_system = NULL;
#endif // USE_FMOD #endif // USE_FMOD
Loading…
Cancel
Save