Hopefully fix wiggler bhv crash

This commit is contained in:
Agent X 2024-07-03 18:40:05 -04:00
parent bc63f96f2b
commit 437622b751
1 changed files with 2 additions and 0 deletions

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