diff --git a/library/xml b/library/xml index 3b7d07599..bd5f8a901 160000 --- a/library/xml +++ b/library/xml @@ -1 +1 @@ -Subproject commit 3b7d075992692c709730d34720b35598b5cb4710 +Subproject commit bd5f8a90178371f83ef6348eaa3e376aee5e7af3 diff --git a/scripts/exportlegends.lua b/scripts/exportlegends.lua index 39b21e417..b8c37efde 100644 --- a/scripts/exportlegends.lua +++ b/scripts/exportlegends.lua @@ -211,8 +211,8 @@ function export_more_legends_xml() file:write("\t\t"..(df.global.world.raws.creatures.all[entityV.race].creature_id):lower().."\n") end file:write("\t\t"..(df.historical_entity_type[entityV.type]):lower().."\n") - if (df.historical_entity_type[entityV.type]):lower() == "religion" then -- Get worshipped figure - if (entityV.unknown1b ~= nil and entityV.unknown1b.worship ~= nill and + if entityV.type == df.historical_entity_type.Religion then -- Get worshipped figure + if (entityV.unknown1b ~= nil and entityV.unknown1b.worship ~= nil and #entityV.unknown1b.worship == 1) then file:write("\t\t"..entityV.unknown1b.worship[0].."\n") else