1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Created large number of missing objects in configs

Minor bugfixes in code
This commit is contained in:
Ivan Savenko
2014-06-17 14:57:47 +03:00
parent 09d595e385
commit 0a71e89f58
8 changed files with 123 additions and 44 deletions

View File

@@ -213,6 +213,9 @@ void ObjectTemplate::readJson(const JsonNode &node)
allowedTerrains.insert(ETerrainType(i));
}
if (allowedTerrains.empty())
logGlobal->warnStream() << "Loaded template without allowed terrains!";
auto charToTile = [&](const char & ch) -> ui8
{
switch (ch)