tastudio: clamp newCell for dragged branches.
this fixes another OOB crash.
This commit is contained in:
parent
90cdbc1d1f
commit
a8fc79910f
|
@ -346,6 +346,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
int originalIndex = Branches.IndexOf(branch);
|
||||
int newIndex = e.NewCell.RowIndex.Value;
|
||||
|
||||
if (newIndex >= Branches.Count)
|
||||
newIndex = Branches.Count - 1;
|
||||
|
||||
Branches.Remove(branch);
|
||||
Branches.Insert(newIndex, branch);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue