Modify function table so it matches gsc-tool

This commit is contained in:
Federico Cecchetto 2021-12-30 04:32:50 +01:00
parent 262016e631
commit 767e028f21
2 changed files with 616 additions and 617 deletions

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,7 @@ namespace scripting
if (index < 0x320) if (index < 0x320)
{ {
return reinterpret_cast<script_function*>(game::base_address + function_table)[index]; return reinterpret_cast<script_function*>(game::base_address + function_table)[index - 1];
} }
return reinterpret_cast<script_function*>(game::base_address + method_table)[index - 0x8000]; return reinterpret_cast<script_function*>(game::base_address + method_table)[index - 0x8000];