From 9692a064cdddb5d90b221e60ca2a389ab8bebae3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 11 Jun 2020 13:34:15 -0400 Subject: [PATCH] CAudioManager: Make constructor explicit Prevents potentially error-prone constructions from occurring --- src/Core/CAudioManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/CAudioManager.h b/src/Core/CAudioManager.h index 0c242bb0..5a7d052e 100644 --- a/src/Core/CAudioManager.h +++ b/src/Core/CAudioManager.h @@ -26,7 +26,7 @@ class CAudioManager std::unordered_map mSfxIdMap; public: - CAudioManager(CGameProject *pProj); + explicit CAudioManager(CGameProject *pProj); void LoadAssets(); void ClearAssets(); SSoundInfo GetSoundInfo(uint32 SoundID);