mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 19:56:07 +00:00
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
|
// Create SFX Define ID -> AGSC map
|
||||||
for (CAudioGroup* group : mAudioGroups)
|
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);
|
const uint16 DefineID = group->SoundDefineIDByIndex(iSnd);
|
||||||
ASSERT(mSfxIdMap.find(DefineID) == mSfxIdMap.cend());
|
ASSERT(mSfxIdMap.find(DefineID) == mSfxIdMap.cend());
|
||||||
|
@ -21,8 +21,8 @@ public:
|
|||||||
// Accessors
|
// Accessors
|
||||||
TString GroupName() const { return mGroupName; }
|
TString GroupName() const { return mGroupName; }
|
||||||
uint32 GroupID() const { return mGroupID; }
|
uint32 GroupID() const { return mGroupID; }
|
||||||
uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
size_t NumSoundDefineIDs() const { return mDefineIDs.size(); }
|
||||||
uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
|
uint16 SoundDefineIDByIndex(size_t Index) const { return mDefineIDs[Index]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CAUDIOGROUP
|
#endif // CAUDIOGROUP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user