From 90a5889b0a82c163d325df593190f2e89b667a9d Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 10 Dec 2021 06:22:39 +0100 Subject: s32comm.cpp: fixed MT08145 --- src/mame/machine/s32comm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/machine/s32comm.cpp b/src/mame/machine/s32comm.cpp index 420b7d54471..f448d8fcfc2 100644 --- a/src/mame/machine/s32comm.cpp +++ b/src/mame/machine/s32comm.cpp @@ -99,6 +99,8 @@ void s32comm_device::device_add_mconfig(machine_config &config) s32comm_device::s32comm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, S32COMM, tag, owner, clock) { + std::fill(std::begin(m_shared), std::end(m_shared), 0); + // prepare localhost "filename" m_localhost[0] = 0; strcat(m_localhost, "socket."); @@ -133,8 +135,6 @@ void s32comm_device::device_reset() m_zfg = 0; m_cn = 0; m_fg = 0; - - std::fill(std::begin(m_shared), std::end(m_shared), 0); } uint8_t s32comm_device::zfg_r(offs_t offset) -- cgit v1.2.3