Browse Source

Fix possible null pointer dereference.

half-secret
Andrey Akhmichin 5 years ago
parent
commit
52b067fd4f
  1. 2
      dlls/sound.cpp

2
dlls/sound.cpp

@ -1762,7 +1762,7 @@ void CSpeaker::Precache( void )
} }
void CSpeaker::SpeakerThink( void ) void CSpeaker::SpeakerThink( void )
{ {
const char* szSoundFile = NULL; const char* szSoundFile = "";
float flvolume = pev->health * 0.1f; float flvolume = pev->health * 0.1f;
float flattenuation = 0.3f; float flattenuation = 0.3f;
int flags = 0; int flags = 0;

Loading…
Cancel
Save