(7e211a3c4) Fixed crashing if an attack xml includes afflictions that cannot be found

This commit is contained in:
Joonas Rikkonen
2019-04-18 12:04:08 +03:00
parent da87fdb1da
commit 04791aa8e6

View File

@@ -283,6 +283,7 @@ namespace Barotrauma
if (afflictionPrefab == null)
{
DebugConsole.ThrowError("Error in Attack (" + parentDebugName + ") - Affliction prefab \"" + afflictionName + "\" not found.");
continue;
}
}
else
@@ -292,6 +293,7 @@ namespace Barotrauma
if (afflictionPrefab == null)
{
DebugConsole.ThrowError("Error in Attack (" + parentDebugName + ") - Affliction prefab \"" + afflictionIdentifier + "\" not found.");
continue;
}
}