From 1bf1b2cd91e99ad8b2b16a188e6d5277b221eac1 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 11 Apr 2025 23:52:34 -0600 Subject: [PATCH] Correct my 2 off-by-one errors so that the gear list only spans 12 rows instead of 14 --- module/Apps/ActorSheets/HeroSkillsCardV1.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs index 76f0e9d..7ba22e7 100644 --- a/module/Apps/ActorSheets/HeroSkillsCardV1.mjs +++ b/module/Apps/ActorSheets/HeroSkillsCardV1.mjs @@ -122,7 +122,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin }; if (ctx.gear.length < limit) { - for (let i = ctx.gear.length - 1; i <= limit; i++) { + for (let i = ctx.gear.length; i < limit; i++) { ctx.gear.push({ index: ctx.gear.length, uuid: ``,