fix npe caused be last commit changes

This commit is contained in:
yugecin 2016-11-20 22:27:16 +01:00
parent 63144426d1
commit 44bcaf06f9

View File

@ -856,12 +856,14 @@ public class Game extends BasicGameState {
} }
GameObject g = gameObjects[objectIndex]; GameObject g = gameObjects[objectIndex];
if ((g.isCircle() || g.isSlider()) && g.getTime() <= trackPosition) { if (g.isCircle() || g.isSlider()) {
Cursor.lastObjColor = g.getColor(); if (g.getTime() <= trackPosition) {
Cursor.lastMirroredObjColor = g.getMirroredColor(); Cursor.lastObjColor = g.getColor();
} else { Cursor.lastMirroredObjColor = g.getMirroredColor();
Cursor.nextObjColor = g.getColor(); } else {
Cursor.nextMirroredObjColor = g.getMirroredColor(); Cursor.nextObjColor = g.getColor();
Cursor.nextMirroredObjColor = g.getMirroredColor();
}
} }
// timing points // timing points