mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- 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.
This commit is contained in:
parent
c6866bad4d
commit
3e34725966
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ public:
|
|||
FLevelLocals *Level;
|
||||
|
||||
protected:
|
||||
DThinker() = default;
|
||||
DThinker()
|
||||
{
|
||||
ObjectFlags |= OF_JustSpawned;
|
||||
}
|
||||
private:
|
||||
void Remove();
|
||||
|
||||
|
|
Loading…
Reference in a new issue