From b8c49dbf9daf18d1c60dcd1e5d8f5a230272d670 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 5 Jan 2024 21:27:08 +0100 Subject: [PATCH] gen_latch reset latch_written at reset through function instead of directly --- src/devices/machine/gen_latch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/gen_latch.cpp b/src/devices/machine/gen_latch.cpp index 49b57a8bb88..e75d2fe8979 100644 --- a/src/devices/machine/gen_latch.cpp +++ b/src/devices/machine/gen_latch.cpp @@ -66,7 +66,7 @@ void generic_latch_base_device::init_callback(s32 param) void generic_latch_base_device::device_reset() { - m_latch_written = false; + set_latch_written(false); } //-------------------------------------------------