mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-09-09 12:42:31 +00:00
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…
x
Reference in New Issue
Block a user