We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab9a477 commit 2798f38Copy full SHA for 2798f38
LR2Mem.cpp
@@ -6,7 +6,7 @@ static SafetyHookMid hook;
6
static void OnMainLoop(SafetyHookContext& regs) {
7
if (LR2::isInit) return;
8
LR2::stackOffset = regs.esp;
9
- LR2::pSqlite = (void*)(LR2::stackOffset + 0x34);
+ LR2::pSqlite = *(void**)(LR2::stackOffset + 0x34);
10
LR2::pGame = (LR2::game*)(LR2::stackOffset + 0xB8);
11
LR2::isInit = true;
12
}
0 commit comments