Fixed some crashes

This commit is contained in:
Anuken
2020-11-29 11:08:12 -05:00
parent 67c6e0179f
commit 29be8176c1
2 changed files with 2 additions and 1 deletions

View File

@@ -769,7 +769,7 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean pan(float x, float y, float deltaX, float deltaY){
if(Core.scene.hasDialog() || Core.settings.getBool("keyboard")) return false;
if(Core.scene == null || Core.scene.hasDialog() || Core.settings.getBool("keyboard")) return false;
float scale = Core.camera.width / Core.graphics.getWidth();
deltaX *= scale;