From bf8621c921eba267e5f2123edc53fd3f8a4bc80a Mon Sep 17 00:00:00 2001 From: Dark Date: Fri, 25 Aug 2023 13:59:11 -0400 Subject: [PATCH] Update rpcs3/Emu/Io/RB3MidiKeyboard.cpp Co-authored-by: Megamouse --- rpcs3/Emu/Io/RB3MidiKeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Io/RB3MidiKeyboard.cpp b/rpcs3/Emu/Io/RB3MidiKeyboard.cpp index 1b1ee39597..dd53eef0ec 100644 --- a/rpcs3/Emu/Io/RB3MidiKeyboard.cpp +++ b/rpcs3/Emu/Io/RB3MidiKeyboard.cpp @@ -199,7 +199,7 @@ void usb_device_rb3_midi_keyboard::parse_midi_message(u8* msg, usz size) // handle note on/off messages if (size == 3 && (msg[0] == 0x80 || msg[0] == 0x90)) { - bool note_on = (0x10 & msg[0]) == 0x10 && msg[2] != 0; + const bool note_on = (0x10 & msg[0]) == 0x10 && msg[2] != 0; // handle navigation buttons switch (msg[1])