CObjectList: Make constructor explicit

Prevents error-prone implicit constructions from taking place.
This commit is contained in:
Lioncash 2020-05-07 08:22:52 -04:00
parent 35fd50ded3
commit 762a4634cb
1 changed files with 1 additions and 1 deletions

View File

@ -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);