forked from Ports/perfect_dark
port: fix chraction crash
bug?
This commit is contained in:
1 parent
9081421eba
commit
afae1a3aae
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user