diff --git a/lib/app_component.dart b/lib/app_component.dart index 458b080..8e726df 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -43,7 +43,6 @@ class AppComponent implements OnInit { } void onResetClicked() { - engine.running = false; engine.reset(); } diff --git a/lib/src/Engine.dart b/lib/src/Engine.dart index 3a8263a..80f16ed 100644 --- a/lib/src/Engine.dart +++ b/lib/src/Engine.dart @@ -29,6 +29,7 @@ class Engine { void reset() { _grid.reset(); + running = false; } void clear() {