0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom.git synced 2025-03-22 10:51:10 +00:00

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

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;
}