(svn r10774) -Fix (r10768): obiwan pleased us with a visit.
authorrubidium
Fri, 03 Aug 2007 20:46:59 +0000
changeset 7402 8c221b48168a
parent 7401 7a72cc2a1196
child 7403 3b27d8ee8137
(svn r10774) -Fix (r10768): obiwan pleased us with a visit.
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()) {