stack32 is now always 0 or 1, to prevent failed comparisons in 386_dynarec.c.
Only clear an entry in codeblock_hash if it's pointing to the block actually being deleted. Speeds up menus in Railroad Tycoon II significantly.
This commit is contained in:
parent
39c95ee0af
commit
38fb86cb95
3 changed files with 9 additions and 8 deletions
|
|
@ -116,7 +116,8 @@ void dump_block()
|
|||
static void delete_block(codeblock_t *block)
|
||||
{
|
||||
// pclog("delete_block: pc=%08x\n", block->pc);
|
||||
codeblock_hash[HASH(block->phys)] = NULL;
|
||||
if (block == codeblock_hash[HASH(block->phys)])
|
||||
codeblock_hash[HASH(block->phys)] = NULL;
|
||||
|
||||
if (!block->pc)
|
||||
fatal("Deleting deleted block\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue