From d4daa694e114db7c3306cb631e5e7f929f7f2fad Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Mon, 17 Apr 2017 19:13:58 +0000 Subject: [PATCH] Changes. --- ShiftOS.Server/SaveManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ShiftOS.Server/SaveManager.cs b/ShiftOS.Server/SaveManager.cs index 56e8d50..52d665b 100644 --- a/ShiftOS.Server/SaveManager.cs +++ b/ShiftOS.Server/SaveManager.cs @@ -164,6 +164,8 @@ namespace ShiftOS.Server public static void SaveGame(string guid, object contents) { var sav = contents as Save; + if (string.IsNullOrWhiteSpace(sav.Username)) + return; sav.Username = sav.Username.ToLower(); WriteEncFile("saves/" + sav.Username + ".save", JsonConvert.SerializeObject(sav, Formatting.Indented));