diff --git a/src/client/confirm_history.rs b/src/client/confirm_history.rs index cbf44f0d..3d974612 100644 --- a/src/client/confirm_history.rs +++ b/src/client/confirm_history.rs @@ -90,10 +90,11 @@ impl ConfirmHistory { pub fn confirm(&mut self, tick: RepliconTick) { if tick > self.last_tick { self.set_last_tick(tick); - } - let ago = self.last_tick - tick; - if ago < u64::BITS { - self.set(ago); + } else { + let ago = self.last_tick - tick; + if ago < u64::BITS { + self.set(ago); + } } }