From 752597983f682adf7f0699d23f727b334b6c3867 Mon Sep 17 00:00:00 2001 From: aah13002 Date: Fri, 29 Apr 2016 04:13:38 -0400 Subject: [PATCH] Move made final in GamePanel::moveSelectedPiece() so that Java thread won't complain --- src/view/GamePanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/GamePanel.java b/src/view/GamePanel.java index 9cddf61..48c6082 100644 --- a/src/view/GamePanel.java +++ b/src/view/GamePanel.java @@ -143,7 +143,7 @@ public void movePiece(Move move) { public void moveSelectedPiece() { /* Create the move */ - Move move = new Move(moveSource.getCellLocation(), moveDestination.getCellLocation()); + final Move move = new Move(moveSource.getCellLocation(), moveDestination.getCellLocation()); /* Get rid of valid destination options */ dehighlightValidDestinations();