fix for role editor crash when roles are null

This commit is contained in:
Bishbash777
2021-07-28 08:55:27 +01:00
committed by GitHub
parent 218cd30152
commit 61e1ed7a59

View File

@@ -133,6 +133,10 @@ namespace Torch.Server.Views
var d = new RoleEditor();
var w = _instanceManager.DedicatedConfig.SelectedWorld;
if(w.Checkpoint.PromotedUsers == null) {
w.Checkpoint.PromotedUsers = new VRage.Serialization.SerializableDictionary<ulong, MyPromoteLevel>();
}
if (w == null)
{
MessageBox.Show("A world is not selected.");