I am getting a really weird unhandled exception that just doesn't make sense to me. I've annotated my code so hopefully it will make sense to you aswell.
Any help on this would and will be appreciated :)
void DarkGDK( )
{
dbSyncOn( );
dbSyncRate( 60 );
CBaseEntity *ent = CreateEntity( "sp_camfollower" );
//ent is valid here, in the calls to Precache and Spawn
ent->Precache( );
ent->Spawn( );
while( LoopGDK( ) )
{
G_RunFrame( );
//i get an unhandled exception here, at the call to Update
ent->Update( );
dbControlCameraUsingArrowKeys( 0,1,2 );
dbSync( );
}
ent->Destroy( );
return;
}