From 5d0a08b2071f7574937fdcc1a7e86798b820b042 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 22 Jun 2020 22:38:41 -0400 Subject: [PATCH] CAudioGroup: Make use of size_t where applicable --- src/Core/CAudioManager.cpp | 2 +- src/Core/Resource/CAudioGroup.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/CAudioManager.cpp b/src/Core/CAudioManager.cpp index 4421bdc2..520563fa 100644 --- a/src/Core/CAudioManager.cpp +++ b/src/Core/CAudioManager.cpp @@ -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()); diff --git a/src/Core/Resource/CAudioGroup.h b/src/Core/Resource/CAudioGroup.h index b0143c53..66413970 100644 --- a/src/Core/Resource/CAudioGroup.h +++ b/src/Core/Resource/CAudioGroup.h @@ -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