From 8756dde4e69eb319949550a51dbad29711e915c4 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 20 May 2021 02:43:30 +0200 Subject: [PATCH] fix: ajout du context au constructeur --- module/item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/item.js b/module/item.js index e74c9027..80d84894 100644 --- a/module/item.js +++ b/module/item.js @@ -39,11 +39,11 @@ export const defaultItemImg = { /* -------------------------------------------- */ export class RdDItem extends Item { - constructor(data) { + constructor(data, context) { if (!data.img) { data.img = defaultItemImg[data.type]; } - super(data); + super(data, context); } static getTypeObjetsEquipement() {