mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Hopefully fix wiggler bhv crash
This commit is contained in:
parent
bc63f96f2b
commit
437622b751
1 changed files with 2 additions and 0 deletions
|
|
@ -441,6 +441,8 @@ void bhv_wiggler_on_received_pre(UNUSED u8 localIndex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void bhv_wiggler_on_received_post(UNUSED u8 localIndex) {
|
void bhv_wiggler_on_received_post(UNUSED u8 localIndex) {
|
||||||
|
if (o == NULL) { return; }
|
||||||
|
|
||||||
Vec3f posDiff = { 0 };
|
Vec3f posDiff = { 0 };
|
||||||
posDiff[0] = o->oPosX - wigglerPrePos[0];
|
posDiff[0] = o->oPosX - wigglerPrePos[0];
|
||||||
posDiff[1] = o->oPosY - wigglerPrePos[1];
|
posDiff[1] = o->oPosY - wigglerPrePos[1];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue