fix possible crash found by axcellerator

This commit is contained in:
haven1433 2025-07-20 08:50:34 -05:00
parent ef93f3e003
commit 2cb0ad134b

View File

@ -119,7 +119,7 @@ namespace HavenSoft.HexManiac.Core.Models.Map {
public BlockCells BlockMap {
get {
var start = Element?.GetAddress(Format.BlockMap) ?? Pointer.NULL;
return new(Element.Model, start, Width, Height);
return new(Element?.Model, start, Width, Height);
}
}
}