Well I tracked the error down to one function call. 
 
 
database.AddLootTableToNPC(); 
 
which is called in  
 
void NPC::AddLootTable(); 
 
When I looked in the database.cpp file I could not find AddLootTableToNPC() function. But the follow change to the file in npc.cpp will solve the crash problem, but no loots on corpses. I will look farther into where that call is trying to go and correct the real problem. 
 
Pretty much just comment out the function for now like so: 
 
          void NPC::AddLootTable() { 
                  if (npctype_id != 0) { // check if it's a GM spawn 
//                        database.AddLootTableToNPC(loottable_id, itemlist, &c$ 
                  } 
          } 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 |