From 26f17fc326105ac8242ce7ecd8dd8660c3ab3004 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 25 Aug 2022 14:32:54 -0400 Subject: [PATCH] fix: update info proxies --- ChatTwo/GameFunctions/Context.cs | 2 +- ChatTwo/GameFunctions/Party.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChatTwo/GameFunctions/Context.cs b/ChatTwo/GameFunctions/Context.cs index 68934f8..0b64f47 100755 --- a/ChatTwo/GameFunctions/Context.cs +++ b/ChatTwo/GameFunctions/Context.cs @@ -49,7 +49,7 @@ internal sealed unsafe class Context { } // 6.05: 20E4CB - var a1 = this.Plugin.Functions.GetInfoProxyByIndex(0x11); + var a1 = this.Plugin.Functions.GetInfoProxyByIndex(0x14); fixed (byte* namePtr = name.ToTerminatedBytes()) { // can specify content id if we have it, but there's no need diff --git a/ChatTwo/GameFunctions/Party.cs b/ChatTwo/GameFunctions/Party.cs index 30dcb70..6b356dd 100755 --- a/ChatTwo/GameFunctions/Party.cs +++ b/ChatTwo/GameFunctions/Party.cs @@ -35,7 +35,7 @@ internal sealed unsafe class Party { } // 6.11: 214A55 - var a1 = this.Plugin.Functions.GetInfoProxyByIndex(1); + var a1 = this.Plugin.Functions.GetInfoProxyByIndex(2); fixed (byte* namePtr = name.ToTerminatedBytes()) { // this only works if target is on the same world this._inviteToParty(a1, contentId, namePtr, world); @@ -48,7 +48,7 @@ internal sealed unsafe class Party { } // 6.11: 214A55 - var a1 = this.Plugin.Functions.GetInfoProxyByIndex(1); + var a1 = this.Plugin.Functions.GetInfoProxyByIndex(2); if (contentId != 0) { // third param is world, but it requires a specific world // if they're not on that world, it will fail @@ -64,7 +64,7 @@ internal sealed unsafe class Party { } // 6.11: 214A55 - var a1 = this.Plugin.Functions.GetInfoProxyByIndex(1); + var a1 = this.Plugin.Functions.GetInfoProxyByIndex(2); if (contentId != 0) { // third param is world, but it requires a specific world // if they're not on that world, it will fail