Previous 199869 Revisions Next

r17920 Sunday 16th September, 2012 at 08:37:58 UTC by Miodrag Milanović
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)
[src/mame/video]konicdev.c

trunk/src/mame/video/konicdev.c
r17919r17920
43254325{
43264326   assert(device != NULL);
43274327   assert((device->type() == K053246 || device->type() == K053247 || device->type() == K055673));
4328
4329   return (k053247_state *)downcast<k053247_device *>(device)->token();
4328   if (device->type() == K055673) {
4329      return (k053247_state *)downcast<k055673_device *>(device)->token();
4330   } else {
4331      return (k053247_state *)downcast<k053247_device *>(device)->token();
4332   }
43304333}
43314334
43324335INLINE const k053247_interface *k053247_get_interface( device_t *device )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team