(d9829ac) v0.9.4.0
This commit is contained in:
@@ -25,8 +25,8 @@ namespace Barotrauma
|
||||
{
|
||||
configPath = filePath;
|
||||
XDocument doc = XMLExtensions.TryLoadXml(filePath);
|
||||
if (doc == null || doc.Root == null) return;
|
||||
|
||||
if (doc == null) { return; }
|
||||
|
||||
name = doc.Root.GetAttributeString("name", "");
|
||||
identifier = doc.Root.GetAttributeString("identifier", null) ?? name.ToLowerInvariant().Replace(" ", "");
|
||||
configElement = doc.Root;
|
||||
|
||||
Reference in New Issue
Block a user