fixed a bug where the home index of piece was wrong
This commit is contained in:
		@@ -178,7 +178,7 @@ public boolean hasPieceInWaitingArea(){
 | 
			
		||||
 | 
			
		||||
    public int getHomeIndexOfPiece(Piece piece) {
 | 
			
		||||
        for (int i = 0; i < Resources.MAX_PIECES; i++) {
 | 
			
		||||
            if (this.homeNodes[i].getOccupant().equals(piece)) {
 | 
			
		||||
            if (piece.equals(this.homeNodes[i].getOccupant())) {
 | 
			
		||||
                return i;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user