Skip to content

Commit 626d5ee

Browse files
committed
fix load snapshot
1 parent cfb6cdd commit 626d5ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Backdash/Session/Backends/LocalSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public bool LoadFrame(Frame frame)
283283
public void LoadSnapshot(StateSnapshot snapshot)
284284
{
285285
if (snapshot.Frame > CurrentFrame)
286-
snapshot.Frame = Frame.Zero;
286+
snapshot.Frame = Frame.Max(CurrentFrame.Previous(), Frame.One);
287287

288288
if (snapshot.Frame.Number >= 0)
289289
{

0 commit comments

Comments
 (0)