From c8c13d626c717ffe9d53c8c0c11fe3585d8c5560 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 16 Sep 2022 02:41:54 +0200 Subject: [PATCH] Fix drop item sans actor --- module/rdd-sheet-utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-sheet-utility.js b/module/rdd-sheet-utility.js index 1289aef1..9f52b7b6 100644 --- a/module/rdd-sheet-utility.js +++ b/module/rdd-sheet-utility.js @@ -26,7 +26,7 @@ export class RdDSheetUtility { destId: destItemId, targetActorId: actorId, itemId: item.id, - sourceActorId: item.actor.id, + sourceActorId: item.actor?.id, srcId: objetVersConteneur[item.id], onEnleverConteneur: () => { delete objetVersConteneur[item.id]; }, onAjouterDansConteneur: (itemId, conteneurId) => { objetVersConteneur[itemId] = conteneurId; }