[nostalgia/core] Update for Ox HashMap::at return type change

This commit is contained in:
Gary Talent 2022-05-28 03:22:05 -05:00
parent 779b18e410
commit bfb441594f

View File

@ -189,7 +189,7 @@ class AssetManager {
ox::Result<AssetRef<T>> getAsset(const ox::String &path) const noexcept { ox::Result<AssetRef<T>> getAsset(const ox::String &path) const noexcept {
auto out = m_cache.at(path); auto out = m_cache.at(path);
oxReturnError(out); oxReturnError(out);
return AssetRef<T>(out.value.get()); return AssetRef<T>(out.value->get());
} }
ox::Result<AssetRef<T>> setAsset(const ox::String &path, const T &obj) noexcept { ox::Result<AssetRef<T>> setAsset(const ox::String &path, const T &obj) noexcept {