I was trying to write some code that overwrites the assignment and plus operators for my text class, and the game crashes immediately upon running in this block of code in chashedlist.h:
+ Code Snippettemplate<class T> T* cHashedList<T>::GetItem( UINT iID )
{
UINT index = HashIndex( iID );
cHashedItem *pItem = m_pHashedItems[ index ];
while( pItem )
{
if ( pItem->m_iID == iID ) return pItem->m_pItem;
pItem = pItem->m_pNextItem;
}
return UNDEF;
}
it crashes at the second assignment statement in that function. Is this a bug or intended behavior?
Thanks!