Merge remote-tracking branch 'origin/master'

This commit is contained in:
Antoine 2021-06-10 15:20:26 +02:00
commit 83635cff06

View File

@ -41,8 +41,10 @@ public class nextFrameBuffer {
public void goToNext() { public void goToNext() {
try { try {
nextFrameBuffer nfb = new nextFrameBuffer();
nfb.clone(this.next);
this.current = this.next.current; this.current = this.next.current;
this.next = this.next.next; this.next.clone(nfb);
} catch (NullPointerException n) { } catch (NullPointerException n) {
this.setCurrentFrame(null); this.setCurrentFrame(null);
this.setNext(new nextFrameBuffer()); this.setNext(new nextFrameBuffer());