mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-17 20:13:41 +00:00
CAudioLookupTable: Make use of explicit constructors
Prevents implicit constructions
This commit is contained in:
parent
d223bac56a
commit
a82f9c197b
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user