Allow null
to be loaded
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
608ec9c72a
commit
c15f5f57f9
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ export class Game
|
||||||
load(data)
|
load(data)
|
||||||
{
|
{
|
||||||
this.setState([], data);
|
this.setState([], data);
|
||||||
|
|
||||||
|
if (!this.#state)
|
||||||
|
{
|
||||||
|
this.reset();
|
||||||
|
}
|
||||||
|
|
||||||
this.draw();
|
this.draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue