diff options
author | rubidium <rubidium@openttd.org> | 2007-08-03 20:46:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-03 20:46:59 +0000 |
commit | ff2f17d1e84a79f3042628be3bcfc84ea71e2b3a (patch) | |
tree | 7b094905cd22c2d485b5e7811d49931707b45a43 /src | |
parent | 655b2048e5cf6a02ca08c04ac01ca3f74da5bcdd (diff) | |
download | openttd-ff2f17d1e84a79f3042628be3bcfc84ea71e2b3a.tar.xz |
(svn r10774) -Fix (r10768): obiwan pleased us with a visit.
Diffstat (limited to 'src')
-rw-r--r-- | src/oldpool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oldpool.h b/src/oldpool.h index d1301bb2e..38a373474 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()) { |