From ede2c8ca37d97f64bbf83b9d23b6d999bad69478 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 4 Jan 2025 01:05:04 -0600 Subject: [PATCH] [keel] Make AssetTypeManager(Loader) move loader --- src/olympic/keel/include/keel/assetmanager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/olympic/keel/include/keel/assetmanager.hpp b/src/olympic/keel/include/keel/assetmanager.hpp index a857879d..44b2acef 100644 --- a/src/olympic/keel/include/keel/assetmanager.hpp +++ b/src/olympic/keel/include/keel/assetmanager.hpp @@ -202,7 +202,7 @@ class AssetManager { ox::HashMap>> m_cache; public: - AssetTypeManager(Loader loader) noexcept: m_loader(loader) {} + AssetTypeManager(Loader &&loader) noexcept: m_loader(std::move(loader)) {} ox::Result> getAsset(ox::StringView const assetId) const noexcept { OX_REQUIRE(out, m_cache.at(assetId));