diff options
| -rwxr-xr-x | src/dynarec/dynablock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/dynablock.c b/src/dynarec/dynablock.c index 20f3bd04..140633d0 100755 --- a/src/dynarec/dynablock.c +++ b/src/dynarec/dynablock.c @@ -312,7 +312,7 @@ static dynablock_t* internalDBGetBlock(x64emu_t* emu, uintptr_t addr, uintptr_t // try the quickest way first: get parent of current and check if ok! dynablocklist_t *dynablocks = NULL; dynablock_t* block = NULL; - if(current) { + if(current && current->done && !current->gone) { dynablocks = current->parent; if(dynablocks && !(addr>=dynablocks->text && addr<(dynablocks->text+dynablocks->textsz))) dynablocks = NULL; |