Allow null to be loaded
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Manuel Thalmann 2022-12-15 22:17:32 +01:00
parent 608ec9c72a
commit c15f5f57f9

View file

@ -148,6 +148,12 @@ export class Game
load(data)
{
this.setState([], data);
if (!this.#state)
{
this.reset();
}
this.draw();
}