mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-27 14:20:59 +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;
|
FLevelLocals *Level;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DThinker() = default;
|
DThinker()
|
||||||
|
{
|
||||||
|
ObjectFlags |= OF_JustSpawned;
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
void Remove();
|
void Remove();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue