fix brapboys, shogwarr + clones - kaneko16.c "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src"

This commit is contained in:
Michaël Banaan Ananas 2010-06-15 20:16:27 +00:00
parent 5c2c361a1d
commit 3d066d4e25

View File

@ -1814,7 +1814,7 @@ static int calc3_decompress_table(running_machine* machine, int tabnum, UINT8* d
//printf("save to eeprom\n");
{
const address_space *eeprom_space = cputag_get_address_space(space->machine, "eeprom", ADDRESS_SPACE_0);
const address_space *eeprom_space = space->machine->device<eeprom_device>("eeprom")->space();
for (i=0;i<0x80;i++)
{
@ -2164,7 +2164,7 @@ void calc3_mcu_run(running_machine *machine)
*/
{
const address_space *eeprom_space = cputag_get_address_space(space->machine, "eeprom", ADDRESS_SPACE_0);
const address_space *eeprom_space = space->machine->device<eeprom_device>("eeprom")->space();
for (i=0;i<0x80;i++)
{