forked from 0ad/0ad
# fix bug#80 (was due to uninitialized mem)
This was SVN commit r3755.
This commit is contained in:
parent
4856af5f25
commit
5812774ded
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user