Updated 'PlayerData' class.
Updated the 'PlayerData' class by updating the 'Piece' creation inside the constructor.
This commit is contained in:
@@ -39,7 +39,7 @@ public PlayerData(Color color) {
|
||||
waitingArea = new Piece[Resources.MAX_PIECES];
|
||||
for (int i = 0; i < Resources.MAX_PIECES; i++) {
|
||||
homeNodes[i] = new HomeNode();
|
||||
pieces[i] = new Piece(color, PieceState.WAITING, i);
|
||||
pieces[i] = new Piece(color, PieceState.WAITING);
|
||||
waitingArea[i] = pieces[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user