small error corrections
This commit is contained in:
parent
4ad12a3a59
commit
ea4762c50e
@ -40,8 +40,13 @@ public class nextFrameBuffer {
|
||||
}
|
||||
|
||||
public void goToNext() {
|
||||
try {
|
||||
this.current = this.next.current;
|
||||
this.next = this.next.next;
|
||||
} catch (NullPointerException n) {
|
||||
this.setCurrentFrame(null);
|
||||
this.setNext(new nextFrameBuffer());
|
||||
}
|
||||
}
|
||||
|
||||
public Frame getCurrentFrame() {
|
||||
|
@ -112,7 +112,7 @@ public class InputBuffer {
|
||||
} catch (ArrayIndexOutOfBoundsException e ) {
|
||||
return true;
|
||||
}
|
||||
for(int i = command.length - 2; i <= 0 && ret; i--) {
|
||||
for(int i = command.length - 2; i >= 0 && ret; i--) {
|
||||
backCounter = 1;
|
||||
if(startFrameCount - backCounter < 0) {frameToCheck = this.size - (backCounter - startFrameCount);}
|
||||
else {frameToCheck = startFrameCount - backCounter;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user