mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
When built with MSVC, clear() resets m_buffer size to 0 and m_buffer[0] throws an exception (nw)
This commit is contained in:
parent
e8bbf9c239
commit
0a7765b310
@ -59,7 +59,7 @@ void fifo7200_device::device_start()
|
||||
void fifo7200_device::device_reset()
|
||||
{
|
||||
// master reset
|
||||
m_buffer.clear();
|
||||
std::fill(m_buffer.begin(), m_buffer.end(), 0);
|
||||
m_read_ptr = 0;
|
||||
m_write_ptr = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user