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:
parent
3e43a4ef1b
commit
d4952fa3f2
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue