poly.h: initialize m_unit_bucket in constructor (nw)

This commit is contained in:
yz70s 2018-10-04 15:07:08 +02:00
parent cd629dce1d
commit 2e8cd56eb2

View File

@ -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));
}