- update floor/ceiling for inventory items after traveling

Inventory items had dangling floor and ceiling sector pointers after transition to a new level
This could cause random issues with serialization

https://forum.zdoom.org/viewtopic.php?t=67494
This commit is contained in:
alexey.lysiuk 2020-08-22 10:56:45 +03:00 committed by drfrag
parent c2f220132d
commit 36210acc28

View file

@ -1463,6 +1463,7 @@ int G_FinishTravel ()
{
inv->ChangeStatNum (STAT_INVENTORY);
inv->LinkToWorld (nullptr);
P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS);
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
{