CPU/CodeCache: Fix crash when BIOS is missing

This commit is contained in:
Connor McLaughlin 2020-04-19 16:03:31 +10:00
parent 610cc74cb9
commit d5a5432a8b

View file

@ -21,7 +21,8 @@ CodeCache::CodeCache() = default;
CodeCache::~CodeCache()
{
Flush();
if (m_system)
Flush();
}
void CodeCache::Initialize(System* system, Core* core, Bus* bus, bool use_recompiler)