From f26bab83109fec93d51fb845094c21b874971490 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 1 May 2017 16:13:21 -0400 Subject: [PATCH] create user list if it is null --- ShiftOS_TheReturn/SaveSystem.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs index a27b04f..945869b 100644 --- a/ShiftOS_TheReturn/SaveSystem.cs +++ b/ShiftOS_TheReturn/SaveSystem.cs @@ -198,7 +198,10 @@ namespace ShiftOS.Engine Thread.Sleep(50); Console.WriteLine("{SYSTEM_INITIATED}"); - + + if (CurrentSave.Users == null) + CurrentSave.Users = new List(); + if(CurrentSave.Users.Count == 0) { @@ -294,8 +297,10 @@ namespace ShiftOS.Engine public static List Users { - get; - private set; + get + { + return CurrentSave.Users; + } } public static event EmptyEventHandler GameReady;