diff --git a/module/rdd-utility.js b/module/rdd-utility.js index bf367be9..0d75eba6 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -282,7 +282,7 @@ export class RdDUtility { let dropID = $(event.target).parents(".item").attr("data-item-id"); // Only relevant if container drop if ( dropID ) { // Dropped over an item !!! let objetId = dragData.id || dragData.data._id; - if ( actorSheet.objetVersConteneur[objetId] != dropID ) { + if ( actorSheet.objetVersConteneur[objetId] != dropID && objetId != dropID) { if ( actorSheet.actor.testConteneurCapacite(objetId, dropID) ) { await actorSheet.actor.enleverDeConteneur(objetId, actorSheet.objetVersConteneur[objetId]); await actorSheet.actor.ajouterAConteneur(objetId, dropID);