fixes issue with import xmls of characters that dont have gegenstände

pull/61/head
macniel 2025-10-21 17:04:47 +02:00
parent a7164eab53
commit dcdcecb39f
1 changed files with 1 additions and 1 deletions

View File

@ -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');