Browse Source

Fix access to uninitialized variables.

wantedhl
Night Owl 9 years ago
parent
commit
1866872887
  1. 2
      cl_dll/entity.cpp
  2. 2
      dlls/func_break.cpp
  3. 2
      dlls/soundent.cpp

2
cl_dll/entity.cpp

@ -775,7 +775,7 @@ void DLLEXPORT HUD_TempEntUpdate ( @@ -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 )

2
dlls/func_break.cpp

@ -283,7 +283,7 @@ void CBreakable::MaterialSoundRandom( edict_t *pEdict, Materials soundMaterial, @@ -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)
{

2
dlls/soundent.cpp

@ -230,7 +230,7 @@ void CSoundEnt :: Initialize ( void ) @@ -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…
Cancel
Save