- 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
parent 09a7a0d944
commit 05f9df7057

View file

@ -1550,6 +1550,7 @@ int FLevelLocals::FinishTravel ()
{
inv->ChangeStatNum (STAT_INVENTORY);
inv->LinkToWorld (nullptr);
P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS);
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
{