From d92d39f5158087a6df993950615cc540e3cf54d2 Mon Sep 17 00:00:00 2001 From: feos Date: Wed, 21 Oct 2015 18:59:31 +0300 Subject: [PATCH] tastudio: don't truncate LagLog if the branch's one is shorter, but input is the same. --- BizHawk.Client.Common/movie/tasproj/TasMovie.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs index a5a99e3894..d56f2425bc 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs @@ -497,12 +497,14 @@ namespace BizHawk.Client.Common _log = branch.InputLog.ToList(); //_changes = true; - LagLog.FromLagLog(branch.LagLog); // if there are branch states, they will be loaded anyway // but if there's none, or only *after* divergent point, don't invalidate the entire movie anymore if (divergentPoint.HasValue) - StateManager.Invalidate(divergentPoint.Value); + { + StateManager.Invalidate(divergentPoint.Value); + LagLog.FromLagLog(branch.LagLog); // don't truncate LagLog if the branch's one is shorter, but input is the same + } else StateManager.Invalidate(branch.InputLog.Count);