mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-28 02:32:08 +00:00
Fix 'bad dynamic cast' for when slot-0 is empty
This commit is contained in:
parent
abfdb8e0db
commit
105537e4e0
@ -567,7 +567,8 @@ void LanguageCardManager::SetMemModeFromSnapshot(void)
|
||||
saturn.SetMemMainLanguageCard();
|
||||
}
|
||||
|
||||
dynamic_cast<LanguageCardUnit&>(GetCardMgr().GetRef(m_lastSlotToSetMainMemLCFromSnapshot)).SetGlobalLCMemMode();
|
||||
if (GetCardMgr().QuerySlot(m_lastSlotToSetMainMemLCFromSnapshot) != CT_Empty)
|
||||
dynamic_cast<LanguageCardUnit&>(GetCardMgr().GetRef(m_lastSlotToSetMainMemLCFromSnapshot)).SetGlobalLCMemMode();
|
||||
}
|
||||
|
||||
bool LanguageCardManager::SetLanguageCard(SS_CARDTYPE type)
|
||||
|
Loading…
Reference in New Issue
Block a user