mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-06-02 21:45:13 -05:00
only consider a script pointer as invalid if it points to something other than XSERun / NoInfoRun
This commit is contained in:
parent
c76acd2536
commit
e8bae98ea3
|
|
@ -89,6 +89,8 @@ namespace HavenSoft.HexManiac.Core.Models.Map {
|
|||
public ModelTable MapScripts {
|
||||
get => Element.GetSubTable("mapscripts");
|
||||
}
|
||||
|
||||
public override string ToString() => $"({Group}, {Map})";
|
||||
}
|
||||
|
||||
public record LayoutPrototype(int PrimaryBlockset, int SecondaryBlockset, int BorderBlock);
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
|
|||
}
|
||||
|
||||
var run = element.Model.GetNextRun(address);
|
||||
if (run.Start < address || run is not XSERun) {
|
||||
if (run.Start < address || (run is not XSERun && run is not NoInfoRun)) {
|
||||
ScriptAddressError = IsValidScriptFreespace(address) ? "Freespace found at that address." : "No script found at that address.";
|
||||
HasScriptAddressError = true;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user