2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 20:24:01 +00:00

CElementGen: std::move TToken instance in constructor

Allows the parameter to be moved into via calling code.
This commit is contained in:
Lioncash
2020-03-09 13:07:51 -04:00
parent af2a82b5a7
commit 15dce1683e
2 changed files with 4 additions and 5 deletions

View File

@@ -144,8 +144,8 @@ private:
void AccumulateBounds(const zeus::CVector3f& pos, float size);
public:
CElementGen(const TToken<CGenDescription>& gen, EModelOrientationType orientType = EModelOrientationType::Normal,
EOptionalSystemFlags flags = EOptionalSystemFlags::One);
explicit CElementGen(TToken<CGenDescription> gen, EModelOrientationType orientType = EModelOrientationType::Normal,
EOptionalSystemFlags flags = EOptionalSystemFlags::One);
~CElementGen() override;
std::array<boo::ObjToken<boo::IShaderDataBinding>, 2> m_normalDataBind;