- fixed SW's flash bomb.

This commit is contained in:
Christoph Oelckers 2022-10-01 14:33:56 +02:00
parent 9627f00f32
commit f307e22f4b

View file

@ -1571,7 +1571,7 @@ void SpawnFlashBombOnActor(DSWActor* actor)
auto actorNew = SpawnActor(STAT_MISSILE, FIREBALL_FLAMES, s_FireballFlames, actor->sector(),
actor->int_pos().X, actor->int_pos().Y, actor->int_pos().Z, actor->spr.ang, 0);
if (actor->user.flameActor != nullptr)
if (actor != nullptr)
actor->user.flameActor = actorNew;
actorNew->spr.xrepeat = 16;