mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fix for :
rungun and clones - rungun.c [DEBUG] "Error: bad downcast<> or device<>. Tried to convert the device :k055673 of type Konami 055673 to a P14k053247_device, which are incompatible." (no whatnsew)
This commit is contained in:
parent
dbf289a1af
commit
b4304b06e7
@ -4325,8 +4325,11 @@ INLINE k053247_state *k053247_get_safe_token( device_t *device )
|
||||
{
|
||||
assert(device != NULL);
|
||||
assert((device->type() == K053246 || device->type() == K053247 || device->type() == K055673));
|
||||
|
||||
return (k053247_state *)downcast<k053247_device *>(device)->token();
|
||||
if (device->type() == K055673) {
|
||||
return (k053247_state *)downcast<k055673_device *>(device)->token();
|
||||
} else {
|
||||
return (k053247_state *)downcast<k053247_device *>(device)->token();
|
||||
}
|
||||
}
|
||||
|
||||
INLINE const k053247_interface *k053247_get_interface( device_t *device )
|
||||
|
Loading…
Reference in New Issue
Block a user