From 9274355bfdbdbc32deab5505fb65ef22a3048757 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 29 Jan 2011 23:42:48 +0100 Subject: Fix Clock::stop(). --- timer.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- cgit v1.2.3