diff options
| author | Michael <[email protected]> | 2017-05-01 16:13:21 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-01 16:13:21 -0400 |
| commit | f26bab83109fec93d51fb845094c21b874971490 (patch) | |
| tree | 9474808f97c1daad7991d269287c613586a2936a | |
| parent | f893cbf3a11653132a802c57e75488991a312463 (diff) | |
| download | shiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.tar.gz shiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.tar.bz2 shiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.zip | |
create user list if it is null
| -rw-r--r-- | ShiftOS_TheReturn/SaveSystem.cs | 11 |
1 files 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<ClientSave>(); + if(CurrentSave.Users.Count == 0) { @@ -294,8 +297,10 @@ namespace ShiftOS.Engine public static List<ClientSave> Users { - get; - private set; + get + { + return CurrentSave.Users; + } } public static event EmptyEventHandler GameReady; |
