From e7bdcc415578c580806497108cd13d82c15ed426 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 17 Jun 2019 13:53:29 +0200 Subject: [PATCH] Add more assertions to animations engine. --- Telegram/SourceFiles/ui/effects/animations.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/ui/effects/animations.cpp b/Telegram/SourceFiles/ui/effects/animations.cpp index 738bf799f..690f31eb5 100644 --- a/Telegram/SourceFiles/ui/effects/animations.cpp +++ b/Telegram/SourceFiles/ui/effects/animations.cpp @@ -36,12 +36,16 @@ void Basic::restart() { Expects(_started >= 0); _started = crl::now(); + + Ensures(_started >= 0); } void Basic::markStarted() { Expects(_started < 0); _started = crl::now(); + + Ensures(_started >= 0); } void Basic::markStopped() {