aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-01 16:13:21 -0400
committerMichael <[email protected]>2017-05-01 16:13:21 -0400
commitf26bab83109fec93d51fb845094c21b874971490 (patch)
tree9474808f97c1daad7991d269287c613586a2936a /ShiftOS_TheReturn
parentf893cbf3a11653132a802c57e75488991a312463 (diff)
downloadshiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.tar.gz
shiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.tar.bz2
shiftos_thereturn-f26bab83109fec93d51fb845094c21b874971490.zip
create user list if it is null
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/SaveSystem.cs11
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;