diff options
author | rubidium <rubidium@openttd.org> | 2007-08-03 20:18:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-03 20:18:38 +0000 |
commit | 2dd7a5d296988a6862281ffe7b0057e48105e6a9 (patch) | |
tree | c0df7dce8df2117cbd5b8833a3cc661a360dea88 /src/newgrf_spritegroup.cpp | |
parent | 974109446414b91dc80194e6228b27101e61a64f (diff) | |
download | openttd-2dd7a5d296988a6862281ffe7b0057e48105e6a9.tar.xz |
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
Diffstat (limited to 'src/newgrf_spritegroup.cpp')
-rw-r--r-- | src/newgrf_spritegroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp index 139fac9f1..69f6ee60e 100644 --- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -62,7 +62,7 @@ SpriteGroup *AllocateSpriteGroup() { /* This is totally different to the other pool allocators, as we never remove an item from the pool. */ if (_spritegroup_count == GetSpriteGroupPoolSize()) { - if (!AddBlockToPool(&_SpriteGroup_pool)) return NULL; + if (!_SpriteGroup_pool.AddBlockToPool()) return NULL; } return GetSpriteGroup(_spritegroup_count++); @@ -71,7 +71,7 @@ SpriteGroup *AllocateSpriteGroup() void InitializeSpriteGroupPool() { - CleanPool(&_SpriteGroup_pool); + _SpriteGroup_pool.CleanPool(); _spritegroup_count = 0; } |