From 618092a5f6b5ed1501e361b4c7c2f390f4967d66 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 1 Mar 2015 15:53:09 -0800 Subject: [PATCH] GBA SIO: Fix lockstep barrier --- src/gba/sio/lockstep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/sio/lockstep.c b/src/gba/sio/lockstep.c index 7358b4d28..842db4571 100644 --- a/src/gba/sio/lockstep.c +++ b/src/gba/sio/lockstep.c @@ -158,9 +158,9 @@ static int32_t GBASIOLockstepNodeProcessEvents(struct GBASIODriver* driver, int3 } } } + node->p->waiting = 0; ConditionWake(&node->p->barrier); } - --node->p->waiting; if (node->state == LOCKSTEP_FINISHED) { node->d.p->p->memory.io[REG_SIOMULTI0 >> 1] = node->p->multiRecv[0]; node->d.p->p->memory.io[REG_SIOMULTI1 >> 1] = node->p->multiRecv[1];