mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-17 20:13:41 +00:00
CAudioLookupTable: Make FindSoundDefineID() const
This doesn't mutate any contained state, so it can be const.
This commit is contained in:
parent
a82f9c197b
commit
1b4ebd5f7b
@ -14,9 +14,11 @@ public:
|
||||
: CResource(pEntry)
|
||||
{}
|
||||
|
||||
uint16 FindSoundDefineID(uint32 SoundID)
|
||||
uint16 FindSoundDefineID(uint32 SoundID) const
|
||||
{
|
||||
if (SoundID >= mDefineIDs.size()) return -1;
|
||||
if (SoundID >= mDefineIDs.size())
|
||||
return UINT16_MAX;
|
||||
|
||||
return mDefineIDs[SoundID];
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user