Merge pull request #10447 from JosJuice/resetcodeptr-on-decrement

Common/CodeBlock: Call ResetCodePtr when decreasing region_size
This commit is contained in:
JMC47
2022-02-13 17:25:11 -05:00
committed by GitHub

View File

@ -104,6 +104,7 @@ public:
ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation.");
u8* child_region = region + region_size - child_size;
region_size -= child_size;
ResetCodePtr();
return child_region;
}
void AddChildCodeSpace(CodeBlock* child, size_t child_size)