From 437622b751923706e9b8905cacd56c26d0f811d6 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:40:05 -0400 Subject: [PATCH] Hopefully fix wiggler bhv crash --- src/game/behaviors/wiggler.inc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/behaviors/wiggler.inc.c b/src/game/behaviors/wiggler.inc.c index a2b79622..3cdb7bc4 100644 --- a/src/game/behaviors/wiggler.inc.c +++ b/src/game/behaviors/wiggler.inc.c @@ -441,6 +441,8 @@ void bhv_wiggler_on_received_pre(UNUSED u8 localIndex) { } void bhv_wiggler_on_received_post(UNUSED u8 localIndex) { + if (o == NULL) { return; } + Vec3f posDiff = { 0 }; posDiff[0] = o->oPosX - wigglerPrePos[0]; posDiff[1] = o->oPosY - wigglerPrePos[1];