From 05f9df70577f8e227385d1d3a7fbbd77c3763f20 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 22 Aug 2020 10:56:45 +0300 Subject: [PATCH] - 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 --- src/g_level.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_level.cpp b/src/g_level.cpp index 383cc8061..1bd6eb80e 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1550,6 +1550,7 @@ int FLevelLocals::FinishTravel () { inv->ChangeStatNum (STAT_INVENTORY); inv->LinkToWorld (nullptr); + P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS); IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled) {