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