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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user