Changeset - r7402:f3c6aec2e9b1
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-08-03 20:46:59
rubidium@openttd.org
(svn r10774) -Fix (r10768): obiwan pleased us with a visit.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/oldpool.h
Show inline comments
 
@@ -250,13 +250,13 @@ protected:
 
	 * Allocate a pool item; possibly allocate a new block in the pool.
 
	 * @param first the first pool item to start searching
 
	 * @return the allocated pool item (or NULL when the pool is full).
 
	 */
 
	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()) {
 
				first = t->index;
 
				Tid index = t->index;
 

	
0 comments (0 inline, 0 general)