- commit
- e2afaca6fcd32e7d7c8b645caabd96017b51ffcf
- parent
- 1aeadaa8916bbd92f718b0718a450e8282cc7706
- Author
- radow <masteroftheriddles@googlemail.com>
- Date
- 2019-10-26 15:10
fixed a bug
Diffstat
| M | src/logic.js | 3 | +-- |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/logic.js b/src/logic.js
@@ -56,8 +56,7 @@ export const calculateNextGen = function(state) {
56 56 }
57 57
58 58 //Scenariostuff
59 -1 var winstate = state.game.winCondition(state);
60 -1 return winstate;
-1 59 return (state.game.winCondition)?state.game.winCondition(state):null;
61 60 };
62 61
63 62 const getFriendlyNeighbors = function(board, x, y, p){