Fix for hatelist random missing last member on hatelist.

This commit is contained in:
JJ
2013-03-14 20:42:02 -04:00
parent 9fdb6862f8
commit 0b0ee921a5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ Mob *HateList::GetRandom()
int random = MakeRandomInt(0, count-1);
iterator.Reset();
for (int i = 0; i < random-1; i++)
for (int i = 0; i < random; i++)
iterator.Advance();
return iterator.GetData()->ent;
}