summaryrefslogtreecommitdiff
path: root/src/newgrf_sound.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-03 20:18:38 +0000
committerrubidium <rubidium@openttd.org>2007-08-03 20:18:38 +0000
commit2dd7a5d296988a6862281ffe7b0057e48105e6a9 (patch)
treec0df7dce8df2117cbd5b8833a3cc661a360dea88 /src/newgrf_sound.cpp
parent974109446414b91dc80194e6228b27101e61a64f (diff)
downloadopenttd-2dd7a5d296988a6862281ffe7b0057e48105e6a9.tar.xz
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r--src/newgrf_sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp
index d9fe2e882..933c8c5cf 100644
--- a/src/newgrf_sound.cpp
+++ b/src/newgrf_sound.cpp
@@ -20,7 +20,7 @@ STATIC_OLD_POOL(SoundInternal, FileEntry, 3, 1000, NULL, NULL)
FileEntry *AllocateFileEntry()
{
if (_sound_count == GetSoundInternalPoolSize()) {
- if (!AddBlockToPool(&_SoundInternal_pool)) return NULL;
+ if (!_SoundInternal_pool.AddBlockToPool()) return NULL;
}
return GetSoundInternal(_sound_count++);
@@ -29,7 +29,7 @@ FileEntry *AllocateFileEntry()
void InitializeSoundPool()
{
- CleanPool(&_SoundInternal_pool);
+ _SoundInternal_pool.CleanPool();
_sound_count = 0;
/* Copy original sound data to the pool */