mirror of https://github.com/OpenTTD/OpenTTD
Codechange: replace grow() usage in AllocateSound()
parent
6b49205745
commit
d0d4fc73a7
|
@ -32,9 +32,9 @@ static std::vector<SoundEntry> _sounds;
|
||||||
*/
|
*/
|
||||||
SoundEntry *AllocateSound(uint num)
|
SoundEntry *AllocateSound(uint num)
|
||||||
{
|
{
|
||||||
SoundEntry *sound = grow(_sounds, num);
|
size_t pos = _sounds.size();
|
||||||
MemSetT(sound, 0, num);
|
_sounds.insert(_sounds.end(), num, SoundEntry());
|
||||||
return sound;
|
return &_sounds[pos];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue