mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
CMOS: memset, not vector.clear (nw)
vector.clear() sets size to zero, causing a crash immediately upon next access
This commit is contained in:
parent
7b0e4ab452
commit
8923ae9911
@ -196,7 +196,7 @@ void mc146818_device::nvram_default()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_data.clear();
|
||||
memset(&m_data[0], 0, data_size());
|
||||
}
|
||||
|
||||
set_base_datetime();
|
||||
|
Loading…
Reference in New Issue
Block a user