CAudioLookupTable: Make use of explicit constructors

Prevents implicit constructions
This commit is contained in:
Lioncash 2020-06-11 13:25:17 -04:00
parent d223bac56a
commit a82f9c197b
1 changed files with 2 additions and 2 deletions

View File

@ -10,11 +10,11 @@ class CAudioLookupTable : public CResource
std::vector<uint16> mDefineIDs;
public:
CAudioLookupTable(CResourceEntry *pEntry = 0)
explicit CAudioLookupTable(CResourceEntry *pEntry = nullptr)
: CResource(pEntry)
{}
inline uint16 FindSoundDefineID(uint32 SoundID)
uint16 FindSoundDefineID(uint32 SoundID)
{
if (SoundID >= mDefineIDs.size()) return -1;
return mDefineIDs[SoundID];