From 30dbf1ecb94ecbc84cb71eba9936ee050d040b64 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Feb 2017 11:19:54 -0500 Subject: Fix bug with client-side for update_your_cp --- ShiftOS_TheReturn/ServerManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShiftOS_TheReturn/ServerManager.cs') diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs index aad63ef..7c5b8ef 100644 --- a/ShiftOS_TheReturn/ServerManager.cs +++ b/ShiftOS_TheReturn/ServerManager.cs @@ -131,7 +131,7 @@ namespace ShiftOS.Engine var args = JsonConvert.DeserializeObject>(msg.Contents); if(args["username"] as string == SaveSystem.CurrentSave.Username) { - SaveSystem.CurrentSave.Codepoints += (int)args["amount"]; + SaveSystem.CurrentSave.Codepoints += (long)args["amount"]; Infobox.Show($"MUD Control Centre", $"Someone bought an item in your shop, and they have paid {args["amount"]}, and as such, you have been granted these Codepoints."); SaveSystem.SaveGame(); } -- cgit v1.2.3