Skip to content

Commit

Permalink
Fixed a bug introduced in 6cedcbc where if autoGenerate was false, we…
Browse files Browse the repository at this point in the history
…'d still generate all of a simulations' runs and frames. Part of #34. Part of #10.
  • Loading branch information
jkomoros committed Dec 12, 2021
1 parent 6cedcbc commit 22350b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const SimulationRun = class {
//null frame is known), either directly via run() or indirectly by having
//requested all frames up to and past the end.
get complete() {
return this._maxFrameIndex != this._simulation.maxFrameIndex;
return this._maxFrameIndex != Number.MAX_SAFE_INTEGER;
}

//Returns 0.0 for complete failure, 1.0 for complete success, inbetween for
Expand Down

0 comments on commit 22350b5

Please sign in to comment.