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:
Leonard2 2016-05-27 22:56:42 +02:00
parent 599fa7cfd1
commit bca9829950

View file

@ -111,7 +111,13 @@ END_POINTERS
//------------------------------------------------------------------------
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 *next = Owner->psprites;