fix: ajout du context au constructeur

This commit is contained in:
Vincent Vandemeulebrouck 2021-05-20 02:43:30 +02:00
parent 84e4581b34
commit 8756dde4e6

View File

@ -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() {