- fixed a few dangling pointers on traveling between levels

https://forum.zdoom.org/viewtopic.php?t=69747
This commit is contained in:
alexey.lysiuk 2020-09-02 15:33:30 +03:00
commit c46dcd03a3
2 changed files with 9 additions and 1 deletions

View file

@ -1428,7 +1428,6 @@ void FLevelLocals::StartTravel ()
if (Players[i]->health > 0)
{
pawn->UnlinkFromWorld (nullptr);
pawn->BlockingLine = nullptr;
int tid = pawn->tid; // Save TID
pawn->SetTID(0);
pawn->tid = tid; // Restore TID (but no longer linked into the hash chain)