[client,SDL] optimize map lookup

This commit is contained in:
akallabeth 2024-01-05 08:20:29 +01:00 committed by Martin Fleisz
parent fbc25978ae
commit 2b39afcc7a

View File

@ -36,7 +36,7 @@ SDL_RWops* SDLResourceManager::get(const std::string& type, const std::string& i
if (val == resources().end())
return nullptr;
auto& v = resources()[uuid];
const auto& v = val->second;
return SDL_RWFromConstMem(v.data(), v.size());
#else
fs::path path(SDL_RESOURCE_ROOT);