mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed loading of settings from mods
This commit is contained in:
@@ -1064,7 +1064,8 @@ void CModHandler::initializeConfig()
|
||||
for(const TModID & modName : activeMods)
|
||||
{
|
||||
const auto & mod = allMods[modName];
|
||||
VLC->settingsHandler->load(mod.config["settings"]);
|
||||
if (!mod.config["settings"].isNull())
|
||||
VLC->settingsHandler->load(mod.config["settings"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user