From 2f2df29b7a85ae4d2980ec9bafaa0977cf0f8434 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 3 Aug 2007 20:46:59 +0000 Subject: [PATCH] (svn r10774) -Fix (r10768): obiwan pleased us with a visit. --- src/oldpool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oldpool.h b/src/oldpool.h index d1301bb2e1..38a3734742 100644 --- a/src/oldpool.h +++ b/src/oldpool.h @@ -253,7 +253,7 @@ protected: */ 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()) {