diff --git a/src/aspecttree.ts b/src/aspecttree.ts index 13abe0f9..15889450 100644 --- a/src/aspecttree.ts +++ b/src/aspecttree.ts @@ -217,7 +217,7 @@ SharkGame.AspectTree = { $.each(SharkGame.Aspects, (aspectId, aspectData) => { const reqref = tree.requirementReference[aspectId]; - if (!reqref.revealed) return; + if (!reqref || !reqref.revealed) return; let basicText = ""; let cantBuyText = "";