mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-04-25 00:41:15 +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->ChangeStatNum (STAT_INVENTORY);
|
||||||
inv->LinkToWorld (nullptr);
|
inv->LinkToWorld (nullptr);
|
||||||
|
P_FindFloorCeiling(inv, FFCF_ONLYSPAWNPOS);
|
||||||
|
|
||||||
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
|
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue