Веб-сайт самохостера 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarTime.cpp b/source/core/StarTime.cpp
index f64b850..96cbdde 100644
--- a/source/core/StarTime.cpp
+++ b/source/core/StarTime.cpp
@@ -147,7 +147,7 @@ void Clock::setMilliseconds(int64_t millis) {
void Clock::adjustTime(double timeAdjustment) {
RecursiveMutexLocker locker(m_mutex);
- setTime(time() + timeAdjustment);
+ setTime(max<double>(0.0, time() + timeAdjustment));
}
void Clock::adjustMilliseconds(int64_t millisAdjustment) {