Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarTime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarTime.cpp')
-rw-r--r--source/core/StarTime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/StarTime.cpp b/source/core/StarTime.cpp
index b8d01a4..4d0b516 100644
--- a/source/core/StarTime.cpp
+++ b/source/core/StarTime.cpp
@@ -177,6 +177,11 @@ Timer::Timer() : Clock(false) {
Timer::Timer(Timer const& timer)
: Clock(timer) {}
+Timer& Timer::operator=(Timer const& timer) {
+ Clock::operator=(timer);
+ return *this;
+}
+
void Timer::restart(double timeLeft) {
Clock::setTime(-timeLeft);
Clock::start();