From 19a56f9d3b6f6c6ea93208df8e8b683fee010bf6 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Thu, 13 May 2021 19:07:04 +0200 Subject: [PATCH] fix joystick --- front/src/Phaser/UserInput/UserInputManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/UserInput/UserInputManager.ts b/front/src/Phaser/UserInput/UserInputManager.ts index fe78dac8..f4e512ff 100644 --- a/front/src/Phaser/UserInput/UserInputManager.ts +++ b/front/src/Phaser/UserInput/UserInputManager.ts @@ -173,7 +173,7 @@ export class UserInputManager { } destroy(): void { - this.joystick.destroy(); + this.joystick && this.joystick.destroy(); } private initMouseWheel() {