There was an error while loading. Please reload this page.
1 parent ffbfdfe commit 06cf220Copy full SHA for 06cf220
Robust.Shared/Physics/SharedBroadphaseSystem.cs
@@ -339,7 +339,14 @@ private void FindPairs(
339
340
// Logger.DebugS("physics", $"Checking proxy for {proxy.Fixture.Body.Owner} on {broadphase.Owner}");
341
Box2 aabb;
342
- var proxyBroad = proxyBody.Broadphase!;
+ var proxyBroad = proxyBody.Broadphase;
343
+
344
+ if (proxyBroad == null)
345
+ {
346
+ _logger.Error($"Found null broadphase for {ToPrettyString(proxy.Fixture.Body.Owner)}");
347
+ DebugTools.Assert(false);
348
+ return;
349
+ }
350
351
// If it's the same broadphase as our body's one then don't need to translate the AABB.
352
if (proxyBroad.Owner == broadphase)
0 commit comments