From dcdcecb39f98053742ab2b246e2d548c6548ee5c Mon Sep 17 00:00:00 2001 From: macniel Date: Tue, 21 Oct 2025 17:04:47 +0200 Subject: [PATCH] =?UTF-8?q?fixes=20issue=20with=20import=20xmls=20of=20cha?= =?UTF-8?q?racters=20that=20dont=20have=20gegenst=C3=A4nde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/xml-import/xml-import.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/xml-import/xml-import.mjs b/src/module/xml-import/xml-import.mjs index 71250d7e..ee97067c 100644 --- a/src/module/xml-import/xml-import.mjs +++ b/src/module/xml-import/xml-import.mjs @@ -495,7 +495,7 @@ export class XmlImport { actor.items.get(e._id).delete() }) } - held.gegenstände.gegenstand.forEach(e => { + held.gegenstände?.gegenstand?.forEach(e => { const compendiumOfArmor = game.packs.get('DSA_4-1.Armor'); const compendiumOfWeapons = game.packs.get('DSA_4-1.Weapons'); const compendiumOfAmmunition = game.packs.get('DSA_4-1.Ammunition');