diff --git a/DataSpec/DNACommon/ParticleCommon.hpp b/DataSpec/DNACommon/ParticleCommon.hpp index 36e16ee7d..711ba1026 100644 --- a/DataSpec/DNACommon/ParticleCommon.hpp +++ b/DataSpec/DNACommon/ParticleCommon.hpp @@ -917,9 +917,9 @@ struct IEMultiply : IIntElement { struct IESampleAndHold : IIntElement { AT_DECL_DNA_YAMLV_NO_TYPE - IntElementFactory val; IntElementFactory waitMin; IntElementFactory waitMax; + IntElementFactory val; std::string_view ClassID() const override { return "SPAH"sv; } }; diff --git a/Runtime/Particle/CParticleDataFactory.cpp b/Runtime/Particle/CParticleDataFactory.cpp index e847de1d9..fe8454601 100644 --- a/Runtime/Particle/CParticleDataFactory.cpp +++ b/Runtime/Particle/CParticleDataFactory.cpp @@ -662,7 +662,7 @@ std::unique_ptr CParticleDataFactory::GetIntElement(CInputStream& i auto a = GetIntElement(in); auto b = GetIntElement(in); auto c = GetIntElement(in); - return std::make_unique(std::move(a), std::move(b), std::move(c)); + return std::make_unique(std::move(c), std::move(a), std::move(b)); } case SBIG('RAND'): { auto a = GetIntElement(in);