From 5c392a220decc116a5e277875b28d8135564b5e5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Sep 2020 19:37:30 +0200 Subject: [PATCH] - fixed: Actors moved to STAT_TRAVELLING need to preserve their JUSTSPAWNED flag. Otherwise freshly spawned inventory items won't call PostBeginPlay. --- src/playsim/dthinker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/dthinker.cpp b/src/playsim/dthinker.cpp index 66061010de..64099981f6 100644 --- a/src/playsim/dthinker.cpp +++ b/src/playsim/dthinker.cpp @@ -82,7 +82,7 @@ void FThinkerCollection::Link(DThinker *thinker, int statnum) } else { - thinker->ObjectFlags &= ~OF_JustSpawned; + if (statnum != STAT_TRAVELLING) thinker->ObjectFlags &= ~OF_JustSpawned; list = &Thinkers[statnum]; } list->AddTail(thinker);