Skip to content

Commit

Permalink
tastudio: fix crash when comparing branches with identical input and …
Browse files Browse the repository at this point in the history
…different length.

it was setting loop count basing on a longer branch (if it's current), the shorter one going OOB.
  • Loading branch information
feos committed Jul 30, 2015
1 parent 0d87c83 commit 90cdbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BizHawk.Client.Common/movie/tasproj/TasMovie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public void LoadBranch(TasBranch branch)
private int? DivergantPoint(List<string> currentLog, List<string> newLog)
{
int max = newLog.Count;
if (currentLog.Count > newLog.Count)
if (currentLog.Count < newLog.Count)
{
max = currentLog.Count;
}
Expand Down

0 comments on commit 90cdbc1

Please sign in to comment.