From 1e249d353640e3696a8eb6c2b968957e46fabd23 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 10 Dec 2022 23:53:58 +0100 Subject: [PATCH] - fixed bad actor type check. --- source/games/duke/src/premap_r.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/premap_r.cpp b/source/games/duke/src/premap_r.cpp index c14e9f204..24c882dda 100644 --- a/source/games/duke/src/premap_r.cpp +++ b/source/games/duke/src/premap_r.cpp @@ -597,7 +597,7 @@ void prelevel_r(int g, TArray& actors) spriteinit_r(actor, actors); if (actor->GetClass()->TypeName == NAME_RedneckGeometryEffect) actor->Destroy(); - if (actor->spr.picnum == NAME_RedneckKeyinfoSetter) + if (actor->GetClass()->TypeName == NAME_RedneckKeyinfoSetter) { actor->sector()->keyinfo = uint8_t(actor->spr.lotag); actor->Destroy();