Skip to content

Commit

Permalink
fix: scenes bugs with default scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
siriuslatte committed Mar 9, 2023
1 parent 2771bee commit 9d4b7f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@aethergames/mkscribe": "^0.2.0",
"@aethergames/mkscribe": "^0.3.0",
"@rbxts/services": "^1.5.1",
"@rbxts/testez": "^0.4.2-ts.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/visitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class ScribeVisitor implements Interpreter {

if (isDefault && this.records.objectives.current === undefined) {
this.records.objectives.current = objective;
} else {
} else if (isDefault && this.records.objectives.current !== undefined) {
throw `Another objective is already a default one, make sure to not override or have multiple default objectives. ${stmt.name.start}:${stmt.name.end}`;
}

Expand Down

0 comments on commit 9d4b7f6

Please sign in to comment.