port: fix chraction crash

bug?
This commit is contained in:
fgsfds 2023-08-06 21:24:04 +02:00
parent 9081421eba
commit afae1a3aae
1 changed files with 5 additions and 1 deletions

View File

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