mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-16 09:30:00 +00:00
Fix 'bad dynamic cast' for when slot-0 is empty
This commit is contained in:
parent
abfdb8e0db
commit
105537e4e0
@ -567,6 +567,7 @@ void LanguageCardManager::SetMemModeFromSnapshot(void)
|
|||||||
saturn.SetMemMainLanguageCard();
|
saturn.SetMemMainLanguageCard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GetCardMgr().QuerySlot(m_lastSlotToSetMainMemLCFromSnapshot) != CT_Empty)
|
||||||
dynamic_cast<LanguageCardUnit&>(GetCardMgr().GetRef(m_lastSlotToSetMainMemLCFromSnapshot)).SetGlobalLCMemMode();
|
dynamic_cast<LanguageCardUnit&>(GetCardMgr().GetRef(m_lastSlotToSetMainMemLCFromSnapshot)).SetGlobalLCMemMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user