From 3e3472596630113f80a633e54102fd36b7e4d555 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 15 Jan 2019 19:13:59 +0100 Subject: [PATCH] - fixed: The default constructor for DThinker needs to set the OF_JustSpawned flag. Without this, PostBeginPlay will not get called so several things aren't initialized, like weapon slots and other player settings. --- src/dthinker.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dthinker.h b/src/dthinker.h index 284d5f45008..0d1be08b5ab 100644 --- a/src/dthinker.h +++ b/src/dthinker.h @@ -122,7 +122,10 @@ class DThinker : public DObject FLevelLocals *Level; protected: - DThinker() = default; + DThinker() + { + ObjectFlags |= OF_JustSpawned; + } private: void Remove();