mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-20 13:47:09 -05:00
caching bugfix
This commit is contained in:
@@ -378,9 +378,11 @@ namespace HavenSoft.HexManiac.Core.Models {
|
||||
if (!(run is ArrayRun array)) return false;
|
||||
if ((address - array.Start) % array.ElementLength != 0) return false;
|
||||
|
||||
var index = (address - array.Start) / array.ElementLength;
|
||||
if (array.ElementNames.Count == 0) return false;
|
||||
header = array.ElementNames[index];
|
||||
using (ModelCacheScope.CreateScope(this)) {
|
||||
var index = (address - array.Start) / array.ElementLength;
|
||||
if (array.ElementNames.Count == 0) return false;
|
||||
header = array.ElementNames[index];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user