Rework initialization.

This commit is contained in:
Night Owl 2016-04-23 20:18:48 +05:00
parent bdc4e3f8d3
commit 0549ead5ab

View File

@ -867,16 +867,13 @@ bool CHudSpectator::IsActivePlayer(cl_entity_t * ent)
bool CHudSpectator::ParseOverviewFile( ) bool CHudSpectator::ParseOverviewFile( )
{ {
char filename[255]; char filename[255] = { 0 };
char levelname[255]; char levelname[255] = { 0 };
char token[1024]; char token[1024] = { 0 };
float height; float height;
char *pfile = NULL; char *pfile = NULL;
memset( filename, 0, 255 );
memset( levelname, 0, 255 );
memset( token, 0, 1024 );
memset( &m_OverviewData, 0, sizeof(m_OverviewData)); memset( &m_OverviewData, 0, sizeof(m_OverviewData));
// fill in standrd values // fill in standrd values