diff --git a/Core/debugger.c b/Core/debugger.c index a689ea7..c4b5ef5 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -1406,7 +1406,7 @@ void GB_debugger_test_write_watchpoint(GB_gameboy_t *gb, uint16_t addr, uint8_t static bool _GB_debugger_test_read_watchpoint(GB_gameboy_t *gb, value_t addr) { - uint16_t index = find_breakpoint(gb, addr); + uint16_t index = find_watchpoint(gb, addr); uint32_t key = WP_KEY(addr); if (index < gb->n_watchpoints && gb->watchpoints[index].key == key) {