CAnimTreeAnimReaderContainer: std::move shared_ptr in constructor

Provides the same behavior, but without a redundant atomic reference
count increment and decrement.
This commit is contained in:
Lioncash 2020-03-09 11:06:17 -04:00
parent d93df18a37
commit 280e4ce07d
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ namespace urde {
CAnimTreeAnimReaderContainer::CAnimTreeAnimReaderContainer(std::string_view name, std::shared_ptr<IAnimReader> reader,
u32 dbIdx)
: CAnimTreeNode(name), x14_reader(reader), x1c_animDbIdx(dbIdx) {}
: CAnimTreeNode(name), x14_reader(std::move(reader)), x1c_animDbIdx(dbIdx) {}
u32 CAnimTreeAnimReaderContainer::Depth() const { return 1; }