From 0a7765b310b72d4c1c90ec2813edeaef82a42c5c Mon Sep 17 00:00:00 2001 From: smf- Date: Wed, 29 Mar 2017 12:12:51 +0100 Subject: [PATCH] When built with MSVC, clear() resets m_buffer size to 0 and m_buffer[0] throws an exception (nw) --- src/devices/machine/7200fifo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/7200fifo.cpp b/src/devices/machine/7200fifo.cpp index b15f7f551c6..ff2c9205f91 100644 --- a/src/devices/machine/7200fifo.cpp +++ b/src/devices/machine/7200fifo.cpp @@ -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;