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
1 changed files with 3 additions and 3 deletions

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];
}