Some more logging to help diagnose #278, a potential workaround to remove items/characters that Entity.RemoveAll failed to remove for some reason.

This commit is contained in:
Joonas Rikkonen
2018-04-20 16:50:10 +03:00
parent 395ca3c5c2
commit 177f31d538
3 changed files with 47 additions and 2 deletions
@@ -24,7 +24,7 @@ namespace Barotrauma
{
if (limbs == null)
{
DebugConsole.ThrowError("Attempted to access a potentially removed ragdoll. Character: " + character.Name + ", id: " + character.ID + ", removed: " + character.Removed);
DebugConsole.ThrowError("Attempted to access a potentially removed ragdoll. Character: " + character.Name + ", id: " + character.ID + ", removed: " + character.Removed + ", ragdoll removed: " + !list.Contains(this));
return new Limb[0];
}
return limbs;