Changeset - r23709:910d6dd962df
[Not reviewed]
master
0 1 0
glx - 5 years ago 2019-05-03 14:27:01
glx@openttd.org
Codechange: replace grow() usage in AllocateSound()
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf_sound.cpp
Show inline comments
 
@@ -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];
 
}
 

	
 

	
0 comments (0 inline, 0 general)