So after finding a bug with how agk deletes images, I tried to go for a much more object-oriented solution(yay!).
Now the game crashes before it even gets going.
It crashes at the first assignment statement:
template<class T> T* cHashedList<T>::GetItem( const char *szID )
{
if ( !szID ) return UNDEF;
UINT index = HashIndex( szID );
cHashedItem *pItem = m_pHashedItems[ index ];
while( pItem )
{
if ( pItem->m_szID && strcmp( szID, pItem->m_szID ) == 0 ) return pItem->m_pItem;
pItem = pItem->m_pNextItem;
}
return UNDEF;
}
If this isn't a bug, some explanation would help.