# HG changeset patch # User rubidium # Date 1186174019 0 # Node ID 8c221b48168a1872e4da36f5db34a8b49d43c628 # Parent 7a72cc2a119687a8cd280c4536aafab4498dab5d (svn r10774) -Fix (r10768): obiwan pleased us with a visit. diff -r 7a72cc2a1196 -r 8c221b48168a src/oldpool.h --- 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()) {