diff --git a/Runtime/Particle/CElementGen.cpp b/Runtime/Particle/CElementGen.cpp index 9516fbdf2..e1d614970 100644 --- a/Runtime/Particle/CElementGen.cpp +++ b/Runtime/Particle/CElementGen.cpp @@ -53,9 +53,8 @@ void CElementGen::Initialize() { void CElementGen::Shutdown() { CElementGenShaders::Shutdown(); } -CElementGen::CElementGen(const TToken& gen, EModelOrientationType orientType, - EOptionalSystemFlags flags) -: x1c_genDesc(gen), x2c_orientType(orientType), x27c_randState(x94_randomSeed) { +CElementGen::CElementGen(TToken gen, EModelOrientationType orientType, EOptionalSystemFlags flags) +: x1c_genDesc(std::move(gen)), x2c_orientType(orientType), x27c_randState(x94_randomSeed) { CGenDescription* desc = x1c_genDesc.GetObj(); x28_loadedGenDesc = desc; diff --git a/Runtime/Particle/CElementGen.hpp b/Runtime/Particle/CElementGen.hpp index 2a6595e6d..893211428 100644 --- a/Runtime/Particle/CElementGen.hpp +++ b/Runtime/Particle/CElementGen.hpp @@ -144,8 +144,8 @@ private: void AccumulateBounds(const zeus::CVector3f& pos, float size); public: - CElementGen(const TToken& gen, EModelOrientationType orientType = EModelOrientationType::Normal, - EOptionalSystemFlags flags = EOptionalSystemFlags::One); + explicit CElementGen(TToken gen, EModelOrientationType orientType = EModelOrientationType::Normal, + EOptionalSystemFlags flags = EOptionalSystemFlags::One); ~CElementGen() override; std::array, 2> m_normalDataBind;