diff --git a/Core/debugger.c b/Core/debugger.c index b384626..bddc9ea 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -908,7 +908,7 @@ print_usage: uint16_t index = find_watchpoint(gb, result); if (index < gb->n_watchpoints && gb->watchpoints[index].key == key) { GB_log(gb, "Watchpoint already set at %s\n", debugger_value_to_string(gb, result, true)); - if (!gb->watchpoints[index].flags != flags) { + if (gb->watchpoints[index].flags != flags) { GB_log(gb, "Modified watchpoint type\n"); gb->watchpoints[index].flags = flags; }