mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
Fixed: a few members weren't properly initialized
This could go wrong if a layer had only one state of -1 tics
This commit is contained in:
parent
599fa7cfd1
commit
bca9829950
1 changed files with 7 additions and 1 deletions
|
@ -111,7 +111,13 @@ END_POINTERS
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
DPSprite::DPSprite(player_t *owner, AInventory *caller, int id)
|
DPSprite::DPSprite(player_t *owner, AInventory *caller, int id)
|
||||||
: processPending(true), firstTic(true), Owner(owner), Caller(caller), ID(id)
|
: processPending(true),
|
||||||
|
firstTic(true),
|
||||||
|
x(.0), y(.0),
|
||||||
|
oldx(.0), oldy(.0),
|
||||||
|
Flags(0), ID(id),
|
||||||
|
Caller(caller),
|
||||||
|
Owner(owner)
|
||||||
{
|
{
|
||||||
DPSprite *prev = nullptr;
|
DPSprite *prev = nullptr;
|
||||||
DPSprite *next = Owner->psprites;
|
DPSprite *next = Owner->psprites;
|
||||||
|
|
Loading…
Reference in a new issue