summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/timer.cpp b/timer.cpp
index 1285d65..b77251b 100644
--- a/timer.cpp
+++ b/timer.cpp
@@ -16,6 +16,7 @@ void Clock::start() {
}
void Clock::stop() {
+ if(!running) return;
running = false;
base += clock.GetElapsedTime();
}