From 366eda03100c38de7d98cd63fd573c560fc907f2 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 11 Dec 2016 14:15:15 +0100 Subject: [PATCH] fix opsu not being able to start --- src/itdelatrisu/opsu/ui/Cursor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/itdelatrisu/opsu/ui/Cursor.java b/src/itdelatrisu/opsu/ui/Cursor.java index 1bc50855..95b45820 100644 --- a/src/itdelatrisu/opsu/ui/Cursor.java +++ b/src/itdelatrisu/opsu/ui/Cursor.java @@ -23,6 +23,7 @@ import itdelatrisu.opsu.GameImage; import itdelatrisu.opsu.Opsu; import itdelatrisu.opsu.Options; import itdelatrisu.opsu.Utils; +import itdelatrisu.opsu.audio.MusicController; import itdelatrisu.opsu.skins.Skin; import itdelatrisu.opsu.ui.animations.AnimationEquation; @@ -328,8 +329,10 @@ public class Cursor { public void resetLocations() { lastPosition = new Point(0, 0); trail.clear(); - setCursorPosition(-1000, -1000); - setCursorPosition(0, 0); + if (MusicController.getBeatmap() != null) { + setCursorPosition(-1000, -1000); + setCursorPosition(0, 0); + } } /**