Some debug assertions to help figure out the cause for the body.FixtureList==null & GetHullsInRange crash reports

This commit is contained in:
Regalis
2016-11-15 19:53:25 +02:00
parent dd5eb69875
commit f7a9a77721
3 changed files with 23 additions and 16 deletions
+2
View File
@@ -770,6 +770,8 @@ namespace Barotrauma
if (body == null || !body.Enabled) return;
System.Diagnostics.Debug.Assert(body.FarseerBody.FixtureList != null);
if (Math.Abs(body.LinearVelocity.X) > 0.01f || Math.Abs(body.LinearVelocity.Y) > 0.01f)
{
Submarine prevSub = Submarine;