mirror of
https://github.com/holub/mame
synced 2025-05-29 00:53:09 +03:00
Added missing sound type check.
This commit is contained in:
parent
752068a42c
commit
d28c77d4fb
@ -293,6 +293,7 @@ INLINE tms5220_state *get_safe_token(const device_config *device)
|
||||
assert(device->token != NULL);
|
||||
assert(device->type == SOUND);
|
||||
assert(sound_get_type(device) == SOUND_TMS5220 ||
|
||||
sound_get_type(device) == SOUND_TMS5220C ||
|
||||
sound_get_type(device) == SOUND_TMC0285 ||
|
||||
sound_get_type(device) == SOUND_TMS5200);
|
||||
return (tms5220_state *)device->token;
|
||||
|
Loading…
Reference in New Issue
Block a user