Fixes loading of server.
This commit is contained in:
@@ -52,6 +52,8 @@ namespace Game
|
||||
worldState.DefaultValue = result.Read<int>(1);
|
||||
|
||||
string mapIds = result.Read<string>(2);
|
||||
if (!mapIds.IsEmpty())
|
||||
{
|
||||
foreach (string mapIdToken in new StringArray(mapIds, ','))
|
||||
{
|
||||
if (!uint.TryParse(mapIdToken, out uint mapId))
|
||||
@@ -68,6 +70,7 @@ namespace Game
|
||||
|
||||
worldState.MapIds.Add(mapId);
|
||||
}
|
||||
}
|
||||
|
||||
if (!mapIds.IsEmpty() && worldState.MapIds.Empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user