From 286cea5f6280e568f5cb4c953d93993c98625ce4 Mon Sep 17 00:00:00 2001 From: Maya Date: Fri, 22 Jul 2022 00:56:44 +0200 Subject: Fix using wrong Function and wrong function offset (#222) --- NorthstarDedicatedTest/scriptjson.cpp | 2 +- NorthstarDedicatedTest/squirrel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'NorthstarDedicatedTest') diff --git a/NorthstarDedicatedTest/scriptjson.cpp b/NorthstarDedicatedTest/scriptjson.cpp index 220f4968..1921a429 100644 --- a/NorthstarDedicatedTest/scriptjson.cpp +++ b/NorthstarDedicatedTest/scriptjson.cpp @@ -245,7 +245,7 @@ SQRESULT ClientSq_DecodeJSON(void* sqvm) ClientSq_newTable(sqvm); return SQRESULT_NOTNULL; } - ServerSq_newTable(sqvm); + ClientSq_newTable(sqvm); for (int i = 0; i < doc.MemberCount(); i++) { diff --git a/NorthstarDedicatedTest/squirrel.cpp b/NorthstarDedicatedTest/squirrel.cpp index 4d305ee2..502afba0 100644 --- a/NorthstarDedicatedTest/squirrel.cpp +++ b/NorthstarDedicatedTest/squirrel.cpp @@ -160,7 +160,7 @@ void InitialiseClientSquirrel(HMODULE baseAddress) ClientSq_defconst = (sq_defconst)((char*)baseAddress + 0x12120); // Table functions - ClientSq_newTable = (sq_newTableType)((char*)baseAddress + 0x5940); + ClientSq_newTable = (sq_newTableType)((char*)baseAddress + 0x3960); ClientSq_newSlot = (sq_newSlotType)((char*)baseAddress + 0x70B0); ENABLER_CREATEHOOK( -- cgit v1.2.3