fix code that broke tests

This commit is contained in:
haven1433
2022-09-19 22:44:10 -05:00
parent fa99eaf886
commit a8a13bea8b
2 changed files with 2 additions and 2 deletions

View File

@@ -2410,7 +2410,7 @@ namespace HavenSoft.HexManiac.Core.Models {
}
var index = BinarySearch(run.Start);
if (index > 0) {
if (index >= 0) {
changeToken.RemoveRun(runs[index]);
RemoveIndex(index);
}

View File

@@ -1199,7 +1199,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
} else if (run.CreateDataFormat(viewPort.Model, run.Start, true, 16) is SpriteDecorator decorator) {
sprite = decorator.Pixels;
} else {
continue;
sprite = null;
}
var anchor = model.GotoShortcuts[i].GotoAnchor;
var text = model.GotoShortcuts[i].DisplayText;