From afae1a3aae5dbc8c891efec1174ee61c79dc337f Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 6 Aug 2023 21:24:04 +0200 Subject: [PATCH] port: fix chraction crash bug? --- src/game/chraction.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/chraction.c b/src/game/chraction.c index 4ca511b18..831bac5c8 100644 --- a/src/game/chraction.c +++ b/src/game/chraction.c @@ -13761,7 +13761,11 @@ void chrGetAttackEntityPos(struct chrdata *chr, u32 attackflags, s32 entityid, s pos->z = targetchr->prop->pos.z; if (targetchr) { - chr = targetprop->chr; +#ifdef PLATFORM_N64 + chr = targetprop->chr; // bug? targetprop is never set before this +#else + chr = targetchr; +#endif } else { chr = NULL; }