Hopefully fix wiggler bhv crash

This commit is contained in:
Agent X 2024-07-03 18:40:05 -04:00
parent bc63f96f2b
commit 437622b751

View file

@ -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];