Clear device driver member variables on creation (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-08 18:25:45 +01:00
parent 83e0df6cca
commit 8b31662264

View File

@ -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);
}