View Single Post
  #5  
Old 12-23-2002, 04:17 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default Bug

Division by zero in spawngroup.cpp:
int totalchance = 0;

LinkedListIterator<SpawnEntry*> iterator(list_);
iterator.Reset();
while(iterator.MoreElements())
{
totalchance += iterator.GetData()->chance;
iterator.Advance();
}
sint32 roll = (rand()%totalchance);

Also there are occasional exception errors in regards to the spawn door code (which also crashes everytime if you dont have the new door db).
Reply With Quote