From 6bccc57b7c644abdbb2c12ccd700e60095b4f608 Mon Sep 17 00:00:00 2001 From: MetalliC <0vetal0@gmail.com> Date: Wed, 28 Jan 2015 19:11:08 +0200 Subject: jvs host: fix packet encoding, similar to previous --- src/emu/machine/jvshost.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/emu/machine/jvshost.c b/src/emu/machine/jvshost.c index c406afff250..ec4dd5a0f94 100644 --- a/src/emu/machine/jvshost.c +++ b/src/emu/machine/jvshost.c @@ -116,10 +116,13 @@ void jvs_host::encode(UINT8 *buffer, UINT32 &size) if(!size) return; UINT32 add = 1; + UINT8 sum = 0; + for(UINT32 i=0; i