diff --git a/src/gameplay/frames/nextFrameBuffer.java b/src/gameplay/frames/nextFrameBuffer.java index 7c1b8a6..044174c 100644 --- a/src/gameplay/frames/nextFrameBuffer.java +++ b/src/gameplay/frames/nextFrameBuffer.java @@ -41,8 +41,10 @@ public class nextFrameBuffer { public void goToNext() { try { + nextFrameBuffer nfb = new nextFrameBuffer(); + nfb.clone(this.next); this.current = this.next.current; - this.next = this.next.next; + this.next.clone(nfb); } catch (NullPointerException n) { this.setCurrentFrame(null); this.setNext(new nextFrameBuffer());