Skip to content

Commit

Permalink
fix(match): error on frame zero
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Sep 22, 2016
1 parent 1d61d79 commit fcbfecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/match/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ export class Match {
return 0;
}

if (index === 0) {
return callback(frames[0]);
}

let lowerFrame = frames[index - 1];
let upperFrame = frames[index];

Expand Down

0 comments on commit fcbfecd

Please sign in to comment.