[nostalgia/studio] Fix copy pessimization

This commit is contained in:
Gary Talent 2021-05-09 22:36:53 -05:00
parent fee5a33da1
commit 2e71d288b4

View File

@ -116,7 +116,7 @@ std::unique_ptr<T> Project::loadObj(QString path) const {
auto obj = std::make_unique<T>();
auto buff = loadBuff(path);
oxThrowError(ox::readClaw<T>(buff.data(), buff.size(), obj.get()));
return std::move(obj);
return obj;
}
template<typename Functor>