fix VisualThinkers crashing on spawn when level is frozen

This commit is contained in:
Major Cooke 2023-12-30 23:19:16 -05:00 committed by Rachael Alexanderson
parent 3e43a4ef1b
commit d4952fa3f2
1 changed files with 2 additions and 0 deletions

View File

@ -1091,6 +1091,8 @@ void DVisualThinker::Tick()
if (isFrozen())
{ // needed here because it won't retroactively update like actors do.
sub = Level->PointInRenderSubsector(Pos);
cursector = sub->sector;
UpdateSpriteInfo();
return;
}