Commit 79cbdef6 authored by Anna Maria Eilertsen's avatar Anna Maria Eilertsen
Browse files

fixed shadowing bug

parent 7dce9aec
......@@ -35,7 +35,7 @@ public class TwoPlayerGame<T extends MNKGame> {
}
public void setGame(T game) {
if(game!=null) {
if(this.game!=null) {
throw new IllegalStateException("Game is already initialized");
}
this.game = game;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment