diff --git a/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java b/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java index ce82cbe17..037927ac6 100644 --- a/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java +++ b/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java @@ -699,7 +699,7 @@ public class CursorLoader implements AssetLoader { imgDelay = BufferUtils.createIntBuffer(numImages); } imgDelay.put(cid.imgDelay); - } else if (imgData != null) { + } else if (imgDelay != null) { imgDelay.put(cid.imgDelay); } xHotSpot = cid.xHotSpot;