tastudio: don't truncate LagLog if the branch's one is shorter, but input is the same.

This commit is contained in:
feos 2015-10-21 18:59:31 +03:00
parent 8a86737ff0
commit d92d39f515
1 changed files with 4 additions and 2 deletions
BizHawk.Client.Common/movie/tasproj

View File

@ -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);