1
0
Fork 0

(svn r10774) -Fix (r10768): obiwan pleased us with a visit.

release/0.6
rubidium 2007-08-03 20:46:59 +00:00
parent 2dd7a5d296
commit 2f2df29b7a
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ protected:
*/ */
static T *AllocateRaw(uint &first) 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) { for (T *t = Tpool->Get(first); t != NULL; t = (t->index < last_minus_one) ? Tpool->Get(t->index + 1U) : NULL) {
if (!t->IsValid()) { if (!t->IsValid()) {