summaryrefslogtreecommitdiff
path: root/src/newgrf_sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r--src/newgrf_sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp
index dfe7e403e..e9f1163c6 100644
--- a/src/newgrf_sound.cpp
+++ b/src/newgrf_sound.cpp
@@ -32,7 +32,7 @@ static SmallVector<SoundEntry, 8> _sounds;
*/
SoundEntry *AllocateSound(uint num)
{
- SoundEntry *sound = _sounds.Append(num);
+ SoundEntry *sound = grow(_sounds, num);
MemSetT(sound, 0, num);
return sound;
}