fix: send correct linkshell index
This commit is contained in:
1 parent
cd79310d7e
commit
5ce2cd607d
1 file changed
+7
-1
@@ -213,7 +213,13 @@ internal sealed unsafe class Chat : IDisposable {
|
|||||||
|
|
||||||
target.StringPtr = tellTargetPtr == null ? zero : tellTargetPtr;
|
target.StringPtr = tellTargetPtr == null ? zero : tellTargetPtr;
|
||||||
target.StringLength = bytes.Length;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user