author | rubidium |
Fri, 03 Aug 2007 20:46:59 +0000 | |
changeset 7898 | fdc041ac5190 |
parent 7897 | 222641b84fc4 |
child 7899 | 3b6a66b414ec |
src/oldpool.h | file | annotate | diff | comparison | revisions |
--- a/src/oldpool.h Fri Aug 03 20:18:38 2007 +0000 +++ b/src/oldpool.h Fri Aug 03 20:46:59 2007 +0000 @@ -253,7 +253,7 @@ */ static T *AllocateRaw(uint &first) { - uint last_minus_one = Tpool->GetSize(); + uint last_minus_one = Tpool->GetSize() - 1; for (T *t = Tpool->Get(first); t != NULL; t = (t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) { if (!t->IsValid()) {