1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fixed CID 1197411

This commit is contained in:
AlexVinS 2016-11-25 21:51:27 +03:00
parent d81c611ad7
commit dc1015fac9

View File

@ -42,7 +42,8 @@ void CFilesystemGenerator::loadConfig(const JsonNode & config)
logGlobal->debugStream() << "\t\tLoading resource at " << prefix + entry["path"].String(); logGlobal->debugStream() << "\t\tLoading resource at " << prefix + entry["path"].String();
auto map = genFunctorMap(); auto map = genFunctorMap();
auto functor = map.find(entry["type"].String()); auto typeName = entry["type"].String();
auto functor = map.find(typeName);
if (functor != map.end()) if (functor != map.end())
{ {
@ -51,7 +52,7 @@ void CFilesystemGenerator::loadConfig(const JsonNode & config)
} }
else else
{ {
logGlobal->errorStream() << "Unknown filesystem format: " << functor->first; logGlobal->error("Unknown filesystem format: %s", typeName);
} }
} }
} }