CAudioGroup: Make use of size_t where applicable
This commit is contained in:
parent
5e8062cba1
commit
5d0a08b207
|
@ -30,7 +30,7 @@ void CAudioManager::LoadAssets()
|
|||
// Create SFX Define ID -> AGSC map
|
||||
for (CAudioGroup* group : mAudioGroups)
|
||||
{
|
||||
for (uint32 iSnd = 0; iSnd < group->NumSoundDefineIDs(); iSnd++)
|
||||
for (size_t iSnd = 0; iSnd < group->NumSoundDefineIDs(); iSnd++)
|
||||
{
|
||||
const uint16 DefineID = group->SoundDefineIDByIndex(iSnd);
|
||||
ASSERT(mSfxIdMap.find(DefineID) == mSfxIdMap.cend());
|
||||
|
|
|
@ -21,8 +21,8 @@ public:
|
|||
// Accessors
|
||||
TString GroupName() const { return mGroupName; }
|
||||
uint32 GroupID() const { return mGroupID; }
|
||||
uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
||||
uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
|
||||
size_t NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
||||
uint16 SoundDefineIDByIndex(size_t Index) const { return mDefineIDs[Index]; }
|
||||
};
|
||||
|
||||
#endif // CAUDIOGROUP
|
||||
|
|
Loading…
Reference in New Issue