Skip to content

Commit

Permalink
get your shit together msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
briaguya-ai committed Feb 11, 2024
1 parent 4621d4c commit d72e5a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resource/ResourceLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ bool ResourceLoader::RegisterResourceFactory(std::shared_ptr<ResourceFactory> fa
mResourceTypes[typeName] = type;
}

ResourceFactoryKey key = { resourceFormat : format, resourceType : type, resourceVersion : version };
ResourceFactoryKey key = { format, type, version };
if (mFactories.contains(key)) {
SPDLOG_ERROR("Failed to register resource factory: factory with key {}{}{} already exists", format, type,
version);
Expand All @@ -66,7 +66,7 @@ bool ResourceLoader::RegisterResourceFactory(std::shared_ptr<ResourceFactory> fa
}

std::shared_ptr<ResourceFactory> ResourceLoader::GetFactory(uint32_t format, uint32_t type, uint32_t version) {
ResourceFactoryKey key = { resourceFormat : format, resourceType : type, resourceVersion : version };
ResourceFactoryKey key = { format, type, version };
if (!mFactories.contains(key)) {
SPDLOG_ERROR("Could not find resource factory with key {}{}{}", format, type, version);
return nullptr;
Expand Down

0 comments on commit d72e5a9

Please sign in to comment.