From 3c6d286713a0eb81f10bf3a9069972e9eb23236c Mon Sep 17 00:00:00 2001 From: raphaelpieroni Date: Sat, 1 May 2021 17:33:01 +0200 Subject: [PATCH] Fix Calendar for Foundry 0.8.2 --- module/rdd-calendrier.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index b51107b6..5a2523f0 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -41,6 +41,7 @@ export class RdDCalendrier extends Application { this.calendrier = duplicate(game.settings.get("foundryvtt-reve-de-dragon", "calendrier")); //console.log("CALENDRIER", this.calendrier); if (this.calendrier == undefined || this.calendrier.moisRdD == undefined) { + this.calendrier = {}; this.calendrier.heureRdD = 0; // Index dans heuresList this.calendrier.minutesRelative = 0; this.calendrier.moisRdD = 0; // Index dans heuresList @@ -52,6 +53,7 @@ export class RdDCalendrier extends Application { // position this.calendrierPos = duplicate(game.settings.get("foundryvtt-reve-de-dragon", "calendrier-pos")); if (this.calendrierPos == undefined || this.calendrierPos.top == undefined) { + this.calendrierPos = {}; this.calendrierPos.top = 200; this.calendrierPos.left = 200; if (game.user.isGM) { // Uniquement si GM