From 800aee036118eee154af6b0cbb54cb062a50aaa0 Mon Sep 17 00:00:00 2001 From: haven1433 Date: Thu, 2 Feb 2023 07:44:56 -0600 Subject: [PATCH] fix crash in script editor --- src/HexManiac.Core/Models/Code/ScriptParser.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HexManiac.Core/Models/Code/ScriptParser.cs b/src/HexManiac.Core/Models/Code/ScriptParser.cs index 9c2d9351..077fcc2d 100644 --- a/src/HexManiac.Core/Models/Code/ScriptParser.cs +++ b/src/HexManiac.Core/Models/Code/ScriptParser.cs @@ -95,6 +95,7 @@ namespace HavenSoft.HexManiac.Core.Models.Code { if (scripts[j] <= address || scripts[j] >= address + length) continue; lengths.RemoveAt(j); scripts.RemoveAt(j); + i--; } // look for other scripts from destinations that we should care about but don't yet