Skip to content

Commit

Permalink
Merge pull request #34 from joningold/patch-4
Browse files Browse the repository at this point in the history
Fix for overrideTunnelReturnTarget being Void
  • Loading branch information
y-lohse authored Oct 14, 2016
2 parents efe6d48 + eee0885 commit 0ade0fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,8 @@ export class Story extends InkObject{
if (overrideTunnelReturnTarget instanceof DivertTargetValue === false) {
if (popped instanceof Void === false){
throw "Expected void if ->-> doesn't override target";
} else {
overrideTunnelReturnTarget = null;
}
}
}
Expand Down

0 comments on commit 0ade0fe

Please sign in to comment.