mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 05:06:35 -05:00
fix code that broke tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user