mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +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
c2f220132d
commit
36210acc28
1 changed files with 1 additions and 0 deletions
|
@ -1463,6 +1463,7 @@ int G_FinishTravel ()
|
|||
{
|
||||
inv->ChangeStatNum (STAT_INVENTORY);
|
||||
inv->LinkToWorld (nullptr);
|
||||
P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS);
|
||||
|
||||
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue