diff --git a/module/actor.js b/module/actor.js index c09e2a44..527f44c1 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1251,7 +1251,7 @@ export class RdDActor extends Actor { let newItemId = itemMap[item.id]; // Get newItem console.log('New conteneur filling!', newConteneur, newItemId, item); - let contenu = duplicate(this.system.contenu); + let contenu = duplicate(newConteneur.system.contenu); contenu.push(newItemId); await this.updateEmbeddedDocuments('Item', [{ _id: newConteneurId, 'system.contenu': contenu }]); }