CAnimSysContext: std::move TToken instance in constructor

Provides the same interface, but allows for calling code to move into
the constructor.
This commit is contained in:
Lioncash 2020-03-09 11:08:15 -04:00
parent 280e4ce07d
commit 3cec19437a
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ struct CAnimSysContext {
std::shared_ptr<CRandom16> x8_random;
CSimplePool& xc_store;
CAnimSysContext(const TToken<CTransitionDatabaseGame>& transDB, u32 randomSeed, CSimplePool& store)
: x0_transDB(transDB), x8_random(std::make_shared<CRandom16>(randomSeed)), xc_store(store) {}
CAnimSysContext(TToken<CTransitionDatabaseGame> transDB, u32 randomSeed, CSimplePool& store)
: x0_transDB(std::move(transDB)), x8_random(std::make_shared<CRandom16>(randomSeed)), xc_store(store) {}
};
} // namespace urde