some more s/GetSize/size/ and other minor STLisms
This commit is contained in:
@@ -117,9 +117,9 @@ void RageSound::PlayOnceStreamedFromDir( CString sDir )
|
||||
GetDirListing( sDir + "*.wav", arraySoundFiles );
|
||||
GetDirListing( sDir + "*.ogg", arraySoundFiles );
|
||||
|
||||
if( arraySoundFiles.GetSize() != 0 )
|
||||
if( !arraySoundFiles.empty() )
|
||||
{
|
||||
int index = rand() % arraySoundFiles.GetSize();
|
||||
int index = rand() % arraySoundFiles.size();
|
||||
PlayOnceStreamed( sDir + arraySoundFiles[index] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user