2
0
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:
Night Owl 2016-06-13 18:45:25 +05:00
parent 61b28e0c8c
commit 1866872887
3 changed files with 3 additions and 3 deletions

View File

@ -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 )

View File

@ -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)
{

View File

@ -230,7 +230,7 @@ void CSoundEnt :: Initialize ( void )
int i;
int iSound;
m_cLastActiveSounds;
m_cLastActiveSounds = 0;
m_iFreeSound = 0;
m_iActiveSound = SOUNDLIST_EMPTY;