Skip to content

Commit

Permalink
fixed #278
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix committed Nov 13, 2023
1 parent 087d1d8 commit abb39e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/segmented.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ class Segmented {
position.z += 1;

// and kill if we're done
if (position.z + 1 > plot.plotData[position.x][position.y].length) {
if (!Array.isArray(plot.plotData[position.x][position.y])) {
constants.KillSepPlay();
position.z = -1;
} else if (
position.z + 1 >
plot.plotData[position.x][position.y].length
) {
constants.KillSepPlay();
position.z = -1;
}
Expand Down

0 comments on commit abb39e7

Please sign in to comment.