Skip to content

Commit 1fc686b

Browse files
committed
Fix bug in anim cursors.
1 parent ff5d9fc commit 1fc686b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blade-engine/src/com/bladecoder/engine/ui/defaults/ScenePointer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ private void getInputUnproject(Viewport v, Vector2 out) {
119119
}
120120

121121
public void update(float delta) {
122-
if (pointerIcon instanceof AnimationDrawable)
123-
((AnimationDrawable) pointerIcon).act(delta);
122+
if (currentIcon instanceof AnimationDrawable)
123+
((AnimationDrawable) currentIcon).act(delta);
124124
}
125125

126126
public void draw(SpriteBatch batch, Viewport v) {

0 commit comments

Comments
 (0)