Fix for hatelist random missing last member on hatelist.

This commit is contained in:
JJ committed 2013-03-14 20:42:02 -04:00
1 parent 9fdb6862f8
commit 0b0ee921a5
2 files changed
+4 -1

No files matched your search

+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;
}