diff --git a/src/module/actors/actor.ts b/src/module/actors/actor.ts index ef90a49f7..08c9a6d78 100644 --- a/src/module/actors/actor.ts +++ b/src/module/actors/actor.ts @@ -54,7 +54,8 @@ export default class TwodsixActor extends Actor { // Process Cascade skills // So... if a child skill is set to 0 or 1, then the cascade parent is set to 0. let key: string, attr: any; - for ([key, attr] of Object.entries(data.skills)) { + let o = data.skills || []; + for ([key, attr] of Object.entries(o)) { if (attr.parent){ const pnt = data.skills[attr.parent]; diff --git a/static/templates/actors/actor-sheet.html b/static/templates/actors/actor-sheet.html index ee5d7b0cd..dc8d56db5 100644 --- a/static/templates/actors/actor-sheet.html +++ b/static/templates/actors/actor-sheet.html @@ -37,10 +37,10 @@