Skip to content

Commit

Permalink
Merge branch 'dev' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
spencers145 committed Jan 14, 2024
2 parents d77be5b + 692d8de commit 55bf9d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aspecttree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
4 changes: 2 additions & 2 deletions src/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ SharkGame.World = {

// enable resources allowed on the planet
if (worldInfo.includedResources) {
SharkGame.ResourceMap.forEach((resource) => {
resource.exists = false;
SharkGame.ResourceMap.forEach((_resourceData, resourceName) => {
worldResources.get(resourceName).exists = false;
});
_.each(worldInfo.includedResources, (group) => {
if (sharkmisc.has(SharkGame.InternalCategories, group)) {
Expand Down

0 comments on commit 55bf9d3

Please sign in to comment.