fix: send correct linkshell index

This commit is contained in:
Anna 2022-01-14 18:20:11 -05:00
parent 1f03d10a22
commit 7330298277
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

View File

@ -213,7 +213,13 @@ internal sealed unsafe class Chat : IDisposable {
target.StringPtr = tellTargetPtr == null ? zero : tellTargetPtr;
target.StringLength = bytes.Length;
this._changeChatChannel(RaptureShellModule.Instance, (int) (channel + 1), channel.LinkshellIndex(), &target, 1);
var idx = channel.LinkshellIndex();
if (idx == uint.MaxValue) {
idx = 0;
}
this._changeChatChannel(RaptureShellModule.Instance, (int) channel, idx, &target, 1);
}
}
}