this shouldn't be necessary imo, but oh well
This commit is contained in:
Morilli 2022-07-09 02:45:14 +02:00
parent 2308ba1ecc
commit 4e7b003306
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ namespace BizHawk.Client.Common.RamSearchEngine
{
private Compare _compareTo = Compare.Previous;
private IMiniWatch[] _watchList;
private IMiniWatch[] _watchList = Array.Empty<IMiniWatch>();
private readonly SearchEngineSettings _settings;
private readonly UndoHistory<IEnumerable<IMiniWatch>> _history = new UndoHistory<IEnumerable<IMiniWatch>>(true, new List<IMiniWatch>()); //TODO use IList instead of IEnumerable and stop calling `.ToArray()` (i.e. cloning) on reads and writes?
private bool _isSorted = true; // Tracks whether or not the array is sorted by address, if it is, binary search can be used for finding watches