mirror of https://github.com/AxioDL/metaforce.git
CObjectList: Make constructor explicit
Prevents error-prone implicit constructions from taking place.
This commit is contained in:
parent
35fd50ded3
commit
762a4634cb
|
@ -70,7 +70,7 @@ public:
|
||||||
[[nodiscard]] const_iterator cbegin() const { return const_iterator(*this, x2008_firstId); }
|
[[nodiscard]] const_iterator cbegin() const { return const_iterator(*this, x2008_firstId); }
|
||||||
[[nodiscard]] const_iterator cend() const { return const_iterator(*this, -1); }
|
[[nodiscard]] const_iterator cend() const { return const_iterator(*this, -1); }
|
||||||
|
|
||||||
CObjectList(EGameObjectList listEnum);
|
explicit CObjectList(EGameObjectList listEnum);
|
||||||
virtual ~CObjectList() = default;
|
virtual ~CObjectList() = default;
|
||||||
|
|
||||||
void AddObject(CEntity& entity);
|
void AddObject(CEntity& entity);
|
||||||
|
|
Loading…
Reference in New Issue