Core/Object: Add an assert in Object::RemoveFlag to help explain the crash introduced in r2969543fa565b71242cb471e0e85f39203f2bce9

The crash is NOT fixed yet.

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-09-21 19:26:59 -07:00
parent 8b5369ff3f
commit b21490357b

View File

@@ -1059,6 +1059,8 @@ void Object::SetFlag(uint16 index, uint32 newFlag)
void Object::RemoveFlag(uint16 index, uint32 oldFlag)
{
ASSERT(index < m_valuesCount || PrintIndexError(index, true));
ASSERT(m_uint32Values);
uint32 oldval = m_uint32Values[ index ];
uint32 newval = oldval & ~oldFlag;