Some cleanup using ReSharper (mostly removing redundancies)

This commit is contained in:
Regalis
2016-03-12 15:32:34 +02:00
parent ae4e4d8f34
commit d1580328ed
99 changed files with 197 additions and 483 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace Barotrauma
PrefabList = new List<Order>();
XDocument doc = ToolBox.TryLoadXml(ConfigFile);
if (doc == null) return;
if (doc == null || doc.Root == null) return;
foreach (XElement orderElement in doc.Root.Elements())
{