aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaya <malte.hoermeyer@web.de>2022-07-22 00:56:44 +0200
committerGitHub <noreply@github.com>2022-07-22 00:56:44 +0200
commit286cea5f6280e568f5cb4c953d93993c98625ce4 (patch)
tree130245c6574890e16a5443f8b3d6e2f6b1f5abc1
parent938d89713eb055340b5e8866de3000b61e4a0f13 (diff)
downloadNorthstarLauncher-286cea5f6280e568f5cb4c953d93993c98625ce4.tar.gz
NorthstarLauncher-286cea5f6280e568f5cb4c953d93993c98625ce4.zip
Fix using wrong Function and wrong function offset (#222)
-rw-r--r--NorthstarDedicatedTest/scriptjson.cpp2
-rw-r--r--NorthstarDedicatedTest/squirrel.cpp2
2 files changed, 2 insertions, 2 deletions
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(