From 762a4634cbce9ea98392b07340bdd3ff9da20f49 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 08:22:52 -0400 Subject: [PATCH] CObjectList: Make constructor explicit Prevents error-prone implicit constructions from taking place. --- Runtime/CObjectList.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CObjectList.hpp b/Runtime/CObjectList.hpp index a795c80a0..2c9d9bf67 100644 --- a/Runtime/CObjectList.hpp +++ b/Runtime/CObjectList.hpp @@ -70,7 +70,7 @@ public: [[nodiscard]] const_iterator cbegin() const { return const_iterator(*this, x2008_firstId); } [[nodiscard]] const_iterator cend() const { return const_iterator(*this, -1); } - CObjectList(EGameObjectList listEnum); + explicit CObjectList(EGameObjectList listEnum); virtual ~CObjectList() = default; void AddObject(CEntity& entity);