From: Mikko Rasa Date: Sun, 31 Jan 2016 15:20:36 +0000 (+0200) Subject: Disallow negative timeouts for Timer::tick X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=aa774ce3ee35d21ee93d64b0c432cdbce39e4ea3;p=libs%2Fcore.git Disallow negative timeouts for Timer::tick --- diff --git a/source/time/timer.cpp b/source/time/timer.cpp index be1d1ed..e0af57c 100644 --- a/source/time/timer.cpp +++ b/source/time/timer.cpp @@ -69,6 +69,9 @@ void Timer::tick() void Timer::tick(const TimeDelta &timeout) { + if(timeout