summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/model
diff options
context:
space:
mode:
authorBennet Gerlach <bennet_gerlach@web.de>2011-05-31 18:25:36 +0200
committerBennet Gerlach <bennet_gerlach@web.de>2011-05-31 18:25:36 +0200
commitca0696d40c42bd1d73c3bbe11924cb48dc07390c (patch)
tree7b4d26cbeabe48802a3c093a1a5ffcd25506e4b6 /mock/jrummikub/model
parentc3b4eef14ceee77b66c7231879778df3d29a6e05 (diff)
downloadJRummikub-ca0696d40c42bd1d73c3bbe11924cb48dc07390c.tar
JRummikub-ca0696d40c42bd1d73c3bbe11924cb48dc07390c.zip
Fixed clone() in MockTable to match checkTurnStartSetUp()
in RoundControlTest git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@352 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/model')
-rw-r--r--mock/jrummikub/model/MockTable.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java
index d5bf07b..b077b7f 100644
--- a/mock/jrummikub/model/MockTable.java
+++ b/mock/jrummikub/model/MockTable.java
@@ -58,6 +58,8 @@ public class MockTable implements ITable {
}
public MockTable clone() {
+ if (clonedTable == null)
+ return this;
return clonedTable;
}