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