Clear next and prev list pointers on VTs when destroyed

This commit is contained in:
Boondorl 2025-05-29 12:49:48 -04:00 committed by Ricardo Luís Vaz Silva
commit 486be3a5b6

View file

@ -1023,7 +1023,7 @@ void DVisualThinker::OnDestroy()
_next->_prev = _prev;
if (Level->VisualThinkerHead == this)
Level->VisualThinkerHead = _next;
_next = _prev = nullptr;
PT.alpha = 0.0; // stops all rendering.
Super::OnDestroy();
}