summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2010-06-15 20:16:27 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2010-06-15 20:16:27 +0000
commit3d066d4e25c151b0c27ac94f5cc88e6b4f78fd73 (patch)
treea107e4710210101eec748f8682a62ee5af751907 /src
parent5c2c361a1d2fe55346b2118cb71dea8bc790d6fd (diff)
fix brapboys, shogwarr + clones - kaneko16.c "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src"
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/kaneko16.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/kaneko16.c b/src/mame/machine/kaneko16.c
index 3e00e7036c1..6d27c25e3a6 100644
--- a/src/mame/machine/kaneko16.c
+++ b/src/mame/machine/kaneko16.c
@@ -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++)
{