Thread: 0.4.0 Bugs!
View Single Post
  #3  
Old 12-06-2002, 06:23 PM
xorlac
Fire Beetle
 
Join Date: Nov 2002
Posts: 1
Default bug

Until we do an incremental release or a full one the following change can be made to the source to fix the crashing bug:

loottables.cpp, line 144

should start with:

int res = rand()%chancepool;

change to:

int32 res;
i = 0;

if (chancepool!=0)
{
res = rand()%chancepool;
}
else
{
res = 0;
}
Reply With Quote