mirror of https://github.com/FWGS/hlsdk-xash3d
Fix possible null pointer dereference.
This commit is contained in:
parent
b8825c2039
commit
52b067fd4f
|
@ -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…
Reference in New Issue