Skip to content

Commit

Permalink
- fixed: The default constructor for DThinker needs to set the OF_Jus…
Browse files Browse the repository at this point in the history
…tSpawned flag.

Without this, PostBeginPlay will not get called so several things aren't initialized, like weapon slots and other player settings.
  • Loading branch information
coelckers committed Jan 15, 2019
1 parent c6866ba commit 3e34725
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dthinker.h
Expand Up @@ -122,7 +122,10 @@ class DThinker : public DObject
FLevelLocals *Level;

protected:
DThinker() = default;
DThinker()
{
ObjectFlags |= OF_JustSpawned;
}
private:
void Remove();

Expand Down

0 comments on commit 3e34725

Please sign in to comment.