mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
Fix cache record for file load errors in resource manager (#823)
This commit is contained in:
@@ -143,6 +143,7 @@ std::shared_ptr<IResource> ResourceManager::LoadResourceProcess(const ResourceId
|
||||
auto file = LoadFileProcess(identifier.Path, initData);
|
||||
if (file == nullptr) {
|
||||
SPDLOG_TRACE("Failed to load resource file at path {}", identifier.Path);
|
||||
mResourceCache[identifier] = ResourceLoadError::NotFound;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user