Fix toggleCell Function in Simulation

This commit is contained in:
Unknown 2018-10-23 20:30:20 +02:00
parent c8e2417ab8
commit b1d96efc84
2 changed files with 11 additions and 1 deletions

View file

@ -73,7 +73,7 @@ class Simulation {
}
void toggleCellState(int x, int y) {
map.get(x, y) == null ? map.set(x, y, true) : map.set(x, y, false);
map.get(x, y) == false ? map.set(x, y, true) : map.set(x, y, false);
}
Map<int, bool> update() {