From 4bab69b88ff4be2e250706f9574806ed2b1f9e4a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 24 Sep 2022 01:05:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20d=C3=A9placement=20de=20contenu=20rang?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }]); }