Skip to content

Commit

Permalink
Fix #712: RE 2, enemy crash due to memory extension
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Dec 17, 2023
1 parent 498fbca commit 22bad8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions biorandmod/biorand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ static void RE2_HookLoadGame()
// we pack rooms full of stuff like enemies and NPCs
_largeWorkArea = malloc(16 * 1024 * 1024);
WriteProcessMemory(GetCurrentProcess(), (LPVOID)(0x4DEF10), &_largeWorkArea, sizeof(_largeWorkArea), NULL);
b = 0xEB;
WriteProcessMemory(GetCurrentProcess(), (LPVOID)(0x4B1AE8), &b, sizeof(b), NULL);

}

static void ModMain(HMODULE hExecutable)
Expand Down

0 comments on commit 22bad8b

Please sign in to comment.