1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

Codechange: replace grow() usage in AllocateSound()

This commit is contained in:
glx
2019-05-03 16:27:01 +02:00
committed by Charles Pigott
parent 6b49205745
commit d0d4fc73a7

View File

@@ -32,9 +32,9 @@ static std::vector<SoundEntry> _sounds;
*/
SoundEntry *AllocateSound(uint num)
{
SoundEntry *sound = grow(_sounds, num);
MemSetT(sound, 0, num);
return sound;
size_t pos = _sounds.size();
_sounds.insert(_sounds.end(), num, SoundEntry());
return &_sounds[pos];
}