[LazyCalendar] MonthAdvance breaks when moving past the 12th month
Opened this issue · 0 comments
OpMaxis commented
Likely related to issue #58.
When attempting to use !cal month-set, as established in the message pop-up by moving from month 13 to month 14, an overflow appears if attempting to switch to another month, where it iterates 34, the number of days in each month in the day column. Setting the day to a different value does nothing and instead adds NaN to the day column. Setting or advancing the or day simply adds "34," the number of months in a day to the calendar, or "1" to the current day.
As an issue that occurred prior to the month overflow, when attempting to use !cal month-set to move past the 13th and 14th month, Roll20 API would crash with this following error.
RangeError: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
at setCurrentDoM (apiscript.js:7753:30)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)
at setCurrentDoM (apiscript.js:7761:13)