mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
CElementGen: std::move TToken instance in constructor
Allows the parameter to be moved into via calling code.
This commit is contained in:
@@ -53,9 +53,8 @@ void CElementGen::Initialize() {
|
||||
|
||||
void CElementGen::Shutdown() { CElementGenShaders::Shutdown(); }
|
||||
|
||||
CElementGen::CElementGen(const TToken<CGenDescription>& gen, EModelOrientationType orientType,
|
||||
EOptionalSystemFlags flags)
|
||||
: x1c_genDesc(gen), x2c_orientType(orientType), x27c_randState(x94_randomSeed) {
|
||||
CElementGen::CElementGen(TToken<CGenDescription> 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user