forked from mirror/OpenTTD
Codechange: Replace SmallVector::Length() with std::vector::size()
This commit is contained in:
@@ -49,14 +49,14 @@ void InitializeSoundPool()
|
||||
|
||||
SoundEntry *GetSound(SoundID index)
|
||||
{
|
||||
if (index >= _sounds.Length()) return NULL;
|
||||
if (index >= _sounds.size()) return NULL;
|
||||
return &_sounds[index];
|
||||
}
|
||||
|
||||
|
||||
uint GetNumSounds()
|
||||
{
|
||||
return _sounds.Length();
|
||||
return _sounds.size();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user