mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +00:00
- 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:
parent
09a7a0d944
commit
05f9df7057
1 changed files with 1 additions and 0 deletions
|
@ -1550,6 +1550,7 @@ int FLevelLocals::FinishTravel ()
|
|||
{
|
||||
inv->ChangeStatNum (STAT_INVENTORY);
|
||||
inv->LinkToWorld (nullptr);
|
||||
P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS);
|
||||
|
||||
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue