Merge pull request #466 from kamyker/k5-lobbymsg

Lobby.SendChatString() and OnChatMessage fix
This commit is contained in:
Garry Newman 2020-09-04 10:16:54 +01:00 committed by GitHub
commit fd6f7c8586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,8 @@ namespace Steamworks.Data
/// </summary>
public bool SendChatString( string message )
{
var data = System.Text.Encoding.UTF8.GetBytes( message );
//adding null terminator as it's used in Helpers.MemoryToString
var data = System.Text.Encoding.UTF8.GetBytes( message + '\0' );
return SendChatBytes( data );
}