mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-25 11:19:39 +01:00
Fix access to uninitialized variables.
This commit is contained in:
parent
61b28e0c8c
commit
1866872887
@ -775,7 +775,7 @@ void DLLEXPORT HUD_TempEntUpdate (
|
||||
|
||||
if ( pTemp->flags & (FTENT_COLLIDEALL | FTENT_COLLIDEWORLD) )
|
||||
{
|
||||
vec3_t traceNormal;
|
||||
vec3_t traceNormal( 0.0f, 0.0f, 0.0f );
|
||||
float traceFraction = 1;
|
||||
|
||||
if ( pTemp->flags & FTENT_COLLIDEALL )
|
||||
|
@ -283,7 +283,7 @@ void CBreakable::MaterialSoundRandom( edict_t *pEdict, Materials soundMaterial,
|
||||
|
||||
void CBreakable::Precache( void )
|
||||
{
|
||||
const char *pGibName;
|
||||
const char *pGibName = NULL;
|
||||
|
||||
switch (m_Material)
|
||||
{
|
||||
|
@ -230,7 +230,7 @@ void CSoundEnt :: Initialize ( void )
|
||||
int i;
|
||||
int iSound;
|
||||
|
||||
m_cLastActiveSounds;
|
||||
m_cLastActiveSounds = 0;
|
||||
m_iFreeSound = 0;
|
||||
m_iActiveSound = SOUNDLIST_EMPTY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user