fix boutton retour qui efface pas tout

This commit is contained in:
Haïssous Kayyissa 2023-04-08 11:12:02 +02:00
parent 38d267b8b2
commit 43864b6a63

View File

@ -48,10 +48,10 @@ public class Saisie {
}
public void removeSelection(Integer pionVide) {
if(this.sizeSelection<=4 && this.sizeSelection>0) {
this.selection.removeLast();
if(this.sizeSelection>0) {
this.selection.remove(this.sizeSelection-1);
this.selection.add(pionVide);
this.sizeSelection-=1;
this.sizeSelection--;
}
}