diff --git a/spine-ts/spine-webgl/src/LoadingScreen.ts b/spine-ts/spine-webgl/src/LoadingScreen.ts index adca8cde2..2f5e4f9f8 100644 --- a/spine-ts/spine-webgl/src/LoadingScreen.ts +++ b/spine-ts/spine-webgl/src/LoadingScreen.ts @@ -70,8 +70,8 @@ export class LoadingScreen implements Disposable { } } dispose (): void { - this.logo.dispose(); - this.spinner.dispose(); + this.logo?.dispose(); + this.spinner?.dispose(); } draw (complete = false) {