Attempt to diagnose issues #278, #284 and #291. It appears that the game attempts to access the Limbs-field of a ragdoll after it's been set to null (which should only happen when the ragdoll is removed).

This commit is contained in:
Joonas Rikkonen
2018-02-26 15:06:00 +02:00
parent 064750d99f
commit 7f740c2f67
2 changed files with 21 additions and 9 deletions
@@ -1981,12 +1981,10 @@ namespace Barotrauma
public override void Remove()
{
#if DEBUG
if (Removed)
{
DebugConsole.ThrowError("Attempting to remove an already removed character\n" + Environment.StackTrace);
}
#endif
base.Remove();