- SW: fixed user spawned for wrong actor.

This commit is contained in:
Christoph Oelckers 2021-12-25 20:33:08 +01:00
parent 3ec904d5c0
commit d1c6c783a6

View file

@ -11174,13 +11174,13 @@ int DoFireball(DSWActor* actor)
SPRITEp hsp;
USERp hu;
hsp = &u->coll.actor->s();
hsp = &u->coll.actor->s(); // hitActor
hu = u->coll.actor->u();
if (TEST(hsp->extra, SPRX_BURNABLE))
{
if (!hu)
hu = SpawnUser(actor, hsp->picnum, nullptr);
hu = SpawnUser(u->coll.actor, hsp->picnum, nullptr);
SpawnFireballFlames(actor, u->coll.actor);
hit_burn = true;
}