Skip to content

Commit dcbe163

Browse files
committed
Fix invoke table scan in MH stories 3
1 parent 7db3502 commit dcbe163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/sdk/REContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ namespace sdk {
341341
spdlog::info("[VM::update_pointers] Analyzing potential invoke table at {:x}", (uintptr_t)functions);
342342

343343
// Rest of pointers are not null and point somewhere within the game module
344-
for (auto i = 1; i < 28; ++i) {
344+
for (auto i = 1; i < 13; ++i) {
345345
if (functions[i] == 0 || IsBadReadPtr(&functions[i], sizeof(void*))) {
346346
return utility::ExhaustionResult::CONTINUE;
347347
}

0 commit comments

Comments
 (0)