mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Reworked JsonNode constructors to more logical form
This commit is contained in:
@@ -107,7 +107,7 @@ void Graphics::initializeBattleGraphics()
|
||||
if(!CResourceHandler::get(mod)->existsResource(ResourcePath("config/battles_graphics.json")))
|
||||
continue;
|
||||
|
||||
const JsonNode config(mod, JsonPath::builtin("config/battles_graphics.json"));
|
||||
const JsonNode config(JsonPath::builtin("config/battles_graphics.json"), mod);
|
||||
|
||||
//initialization of AC->def name mapping
|
||||
if(!config["ac_mapping"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user