- fixed bad actor type check.

This commit is contained in:
Christoph Oelckers 2022-12-10 23:53:58 +01:00
parent 28b97486cd
commit 1e249d3536

View file

@ -597,7 +597,7 @@ void prelevel_r(int g, TArray<DDukeActor*>& actors)
spriteinit_r(actor, actors); spriteinit_r(actor, actors);
if (actor->GetClass()->TypeName == NAME_RedneckGeometryEffect) if (actor->GetClass()->TypeName == NAME_RedneckGeometryEffect)
actor->Destroy(); actor->Destroy();
if (actor->spr.picnum == NAME_RedneckKeyinfoSetter) if (actor->GetClass()->TypeName == NAME_RedneckKeyinfoSetter)
{ {
actor->sector()->keyinfo = uint8_t(actor->spr.lotag); actor->sector()->keyinfo = uint8_t(actor->spr.lotag);
actor->Destroy(); actor->Destroy();