david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
11 stars 4 forks source link

Crash on browser window resize #32

Closed angilbert closed 4 months ago

angilbert commented 4 months ago

Describe the bug Crash on browser window resize In browser console there is... "Uncaught RangeError: Invalid array length" (see screenshot below)

Reproduction Steps

  1. Launch... https://puzzlescriptnext.polyomino.com/play.html?p=4f8b36f1373d715b7fa47e827c8fef93
  2. Start playing the first level and then resize the browser window

OS & Browser version, desktop/mobile Observed in both Safari and Chrome on MAC v14.4

Screenshots, example projects, other relevant issues, etc.

Screenshot 2024-04-22 at 15 24 41
david-pfx commented 4 months ago

Confirmed.

david-pfx commented 4 months ago

Fixed. Dumb bug.