Skip to content

Commit 2798f38

Browse files
committed
fix missing sqlite ptr dereference
1 parent ab9a477 commit 2798f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LR2Mem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ static SafetyHookMid hook;
66
static void OnMainLoop(SafetyHookContext& regs) {
77
if (LR2::isInit) return;
88
LR2::stackOffset = regs.esp;
9-
LR2::pSqlite = (void*)(LR2::stackOffset + 0x34);
9+
LR2::pSqlite = *(void**)(LR2::stackOffset + 0x34);
1010
LR2::pGame = (LR2::game*)(LR2::stackOffset + 0xB8);
1111
LR2::isInit = true;
1212
}

0 commit comments

Comments
 (0)