1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-25 00:37:24 +02:00

- fixed crash on start of some campaigns

- allowed on map factions is now set instead of bit field
This commit is contained in:
Ivan Savenko
2012-09-23 14:32:49 +00:00
parent 00c079f7dc
commit 3fcba4fb5c
10 changed files with 66 additions and 69 deletions

View File

@ -81,6 +81,8 @@ void CModHandler::loadConfigFromFile (std::string name)
tlog3 << "\t\tFound mod file: " << entry.getResourceName() << "\n";
const JsonNode config ((char*)textData.get(), stream->getSize());
VLC->townh->loadFactions(config["factions"]);
const JsonNode *value = &config["creatures"];
BOOST_FOREACH (auto creature, value->Vector())
{