View Single Post
  #2  
Old 12-19-2002, 07:52 PM
Vendar
Fire Beetle
 
Join Date: Dec 2002
Posts: 1
Default

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$
}
}
Reply With Quote