Some more debug logging

This commit is contained in:
Joonas Rikkonen
2018-02-28 18:04:40 +02:00
parent c803e23c50
commit 38e80be05d
2 changed files with 9 additions and 0 deletions
@@ -125,6 +125,14 @@ namespace Barotrauma
DebugConsole.ThrowError("Error while removing entity \"" + e.ToString() + "\"", exception);
}
}
if (dictionary.Count > 0)
{
DebugConsole.ThrowError("Some entities were not removed in Entity.RemoveAll:");
foreach (Entity e in dictionary.Values)
{
DebugConsole.ThrowError(" - " + e.ToString() + "(ID " + e.id + ")");
}
}
dictionary.Clear();
}