mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 16:54:42 +00:00
Codechange: replace grow() usage in AllocateSound()
This commit is contained in:
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
Block a user