Fix A_SpawnObject not transferring pointers as intended if called in a missile's death state

Fixes #235
This commit is contained in:
Ryan Krafnick 2021-07-04 12:04:44 +02:00 committed by Fabian Greffrath
parent dab91ede77
commit 0ec3c79389

View File

@ -2767,10 +2767,10 @@ void A_SpawnObject(mobj_t *actor)
mo->momz = vel_z;
// if spawned object is a missile, set target+tracer
if (mo->flags & (MF_MISSILE | MF_BOUNCES))
if (mo->info->flags & (MF_MISSILE | MF_BOUNCES))
{
// if spawner is also a missile, copy 'em
if (actor->flags & (MF_MISSILE | MF_BOUNCES))
if (actor->info->flags & (MF_MISSILE | MF_BOUNCES))
{
P_SetTarget(&mo->target, actor->target);
P_SetTarget(&mo->tracer, actor->tracer);