From 226d26ea4c253ee340db8119b81ce033f6b8a446 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 16 Jun 2019 18:02:25 +0300 Subject: [PATCH] (b4c25c1e7) whoops --- .../SteamNative/SteamNative.SteamGameServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs b/Libraries/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs index 1439b32b6..93c999a98 100644 --- a/Libraries/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs +++ b/Libraries/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServer.cs @@ -260,7 +260,7 @@ namespace SteamNative byte[] bytesKey = Encoding.UTF8.GetBytes(pKey); GCHandle handleKey = GCHandle.Alloc(bytesKey, GCHandleType.Pinned); byte[] bytesValue = Encoding.UTF8.GetBytes(pValue); - GCHandle handleValue = GCHandle.Alloc(bytesKey, GCHandleType.Pinned); + GCHandle handleValue = GCHandle.Alloc(bytesValue, GCHandleType.Pinned); platform.ISteamGameServer_SetKeyValue( handleKey.AddrOfPinnedObject(), handleValue.AddrOfPinnedObject() ); handleKey.Free(); handleValue.Free(); }