forked from External/mage
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -234,7 +234,7 @@ public class Table implements Serializable {
|
|||
Player player = seats[i].getPlayer();
|
||||
if (player != null && player.getId().equals(playerId)) {
|
||||
seats[i].setPlayer(null);
|
||||
if (getState().equals(TableState.READY_TO_START)) {
|
||||
if (getState() == TableState.READY_TO_START) {
|
||||
setState(TableState.WAITING);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue