mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Clear device driver member variables on creation (nw)
This commit is contained in:
parent
83e0df6cca
commit
8b31662264
@ -79,7 +79,7 @@ typedef device_t *(*device_type)(const machine_config &mconfig, const char *tag,
|
||||
template<class _DeviceClass>
|
||||
device_t *device_creator(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
||||
{
|
||||
return global_alloc(_DeviceClass(mconfig, tag, owner, clock));
|
||||
return global_alloc_clear<_DeviceClass>(mconfig, tag, owner, clock);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user