From bd66055e4a0753f118fb9623291cdd3eb88c27de Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 13 Nov 2022 23:49:39 +0100 Subject: [PATCH] [#1817] Create zero-argument constructor for StopSimulationListener --- .../listeners/example/StopSimulationListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/net/sf/openrocket/simulation/listeners/example/StopSimulationListener.java b/core/src/net/sf/openrocket/simulation/listeners/example/StopSimulationListener.java index e179d2da9..a76461696 100644 --- a/core/src/net/sf/openrocket/simulation/listeners/example/StopSimulationListener.java +++ b/core/src/net/sf/openrocket/simulation/listeners/example/StopSimulationListener.java @@ -22,7 +22,11 @@ public class StopSimulationListener extends AbstractSimulationListener { private long startTime = -1; private long time = -1; - + + public StopSimulationListener() { + this(0, 0); + } + public StopSimulationListener(double t, int n) { stopTime = t; stopStep = n;