From 2e8cd56eb2d4e1f6389069fb1e70bc593b32b89d Mon Sep 17 00:00:00 2001 From: yz70s Date: Thu, 4 Oct 2018 15:07:08 +0200 Subject: poly.h: initialize m_unit_bucket in constructor (nw) --- src/devices/video/poly.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/devices/video/poly.h b/src/devices/video/poly.h index 1b8130ceca0..c619c50c2a1 100644 --- a/src/devices/video/poly.h +++ b/src/devices/video/poly.h @@ -323,6 +323,8 @@ poly_manager<_BaseType, _ObjectData, _MaxParams, _MaxPolys>::poly_manager(runnin if (!(flags & FLAG_NO_WORK_QUEUE)) m_queue = osd_work_queue_alloc(WORK_QUEUE_FLAG_MULTI | WORK_QUEUE_FLAG_HIGH_FREQ); + memset(m_unit_bucket, 0xff, sizeof(m_unit_bucket)); + // request a pre-save callback for synchronization machine.save().register_presave(save_prepost_delegate(FUNC(poly_manager::presave), this)); } -- cgit v1.2.3