From c07cbbe9bfe3419862dda56990bf4bcfa5e3f3bf Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 21 Oct 2018 03:25:49 +0200 Subject: [PATCH] JVS: fix substract coin --- core/hw/maple/maple_devs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/maple/maple_devs.cpp b/core/hw/maple/maple_devs.cpp index 8b7bfb0c4..2233645e9 100755 --- a/core/hw/maple/maple_devs.cpp +++ b/core/hw/maple/maple_devs.cpp @@ -2295,7 +2295,7 @@ u32 jvs_io_board::handle_jvs_message(u8 *buffer_in, u32 length_in, u8 *buffer_ou case 0x30: // substract coin if (buffer_in[cmdi + 1] == 1) - coin_count -= buffer_in[cmdi + 2] << 8 + buffer_in[cmdi + 3]; + coin_count -= (buffer_in[cmdi + 2] << 8) + buffer_in[cmdi + 3]; JVS_STATUS1(); // report byte cmdi += 4; break;