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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user