# fix bug#80 (was due to uninitialized mem)

This was SVN commit r3755.
This commit is contained in:
janwas 2006-04-12 06:37:51 +00:00
parent 4856af5f25
commit 5812774ded

View File

@ -100,6 +100,11 @@ CEntity::CEntity( CBaseEntity* base, CVector3D position, float orientation, cons
AddProperty( EventNames[t], &m_EventHandlers[t], false );
AddHandler( t, &m_EventHandlers[t] );
}
// FIXME: janwas: this was uninitialized, which leads to disaster if
// its value happens to be positive.
// setting to what seems to be a reasonable default.
m_sectorDivs = 4;
if ( m_sectorDivs >= 0 )
{
m_sectorAngles.resize(m_sectorDivs);