When loading a ram watch file, default to main memory when unable to find the domain saved in the file

This commit is contained in:
adelikat 2013-11-14 19:39:57 +00:00
parent 25b242ade4
commit f3344863ac
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ namespace BizHawk.Client.Common
startIndex = line.IndexOf('\t') + 1;
line = line.Substring(startIndex, line.Length - startIndex); //Domain
temp = line.Substring(0, line.IndexOf('\t'));
memDomain = Global.Emulator.MemoryDomains[temp];
memDomain = Global.Emulator.MemoryDomains[temp] ?? Global.Emulator.MemoryDomains.MainMemory;
}
startIndex = line.IndexOf('\t') + 1;