Lua - memory library - default to main memory if user did not specify a domain

This commit is contained in:
adelikat 2015-01-24 21:33:52 +00:00
parent c9cbac7021
commit 779d7c0cee
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ namespace BizHawk.Client.Common
{
if (MemoryDomainCore != null)
{
if (_currentMemoryDomain == null)
{
_currentMemoryDomain = MemoryDomainCore.MainMemory;
}
return _currentMemoryDomain;
}
else