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(); }