void CBaseEntity::FunctionCheck( void *pFunction, char *name )
{
#ifdef USES_SAVERESTORE
// Note, if you crash here and your class is using multiple
inheritance, it is
// probably the case that CBaseEntity (or a descendant) is not the first
// class in your list of ancestors, which it must be.
if (pFunction && !UTIL_FunctionToName( GetDataDescMap(), pFunction ) )
{
Warning( "FUNCTION NOT IN TABLE!: %s:%s (%08lx)\n",
STRING(m_iClassname), name, (unsigned long)pFunction );
Assert(0);
}
I get the assert here when i call SetThink(&MyClass::MyThinkFunction);
inside my Spawn method
im not really sure what this really means
My class is set up like this (minus the methods and members...)
class MyClass: public CBaseEntity
{
DECLARE_CLASS( MyClass, CBaseEntity );
void MyThinkFunction();
virtual void Spawn();
};
MyClass* blah = (MyClass*)CreateEntityByName("my_class_name");
blah->Spawn();
am i missing something?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders