CAudioGroup: Make use of size_t where applicable

This commit is contained in:
Lioncash 2020-06-22 22:38:41 -04:00
parent 5e8062cba1
commit 5d0a08b207
2 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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