Fix GB_debugger_evaluate not correctly returning the bank

This commit is contained in:
Lior Halphon 2023-07-30 14:21:41 +03:00
parent 048da6e6d1
commit aedb3e2332
1 changed files with 1 additions and 1 deletions

View File

@ -2629,7 +2629,7 @@ bool GB_debugger_evaluate(GB_gameboy_t *gb, const char *string, uint16_t *result
*result = value.value;
}
if (result_bank) {
*result_bank = value.has_bank? value.value : -1;
*result_bank = value.has_bank? value.bank : -1;
}
return error;
}