Merge pull request #4 from tjorim/missing-sprites

Fix sprite priority
This commit is contained in:
Wouter Groeneveld 2019-09-12 16:09:37 +02:00 committed by GitHub
commit d0520e85fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Sprite::Sprite(const Sprite &other) : Sprite(nullptr, 0, other.x, other.y, other
}
Sprite::Sprite(const void *imageData, int imageSize, int x, int y, SpriteSize size)
: x(x), y(y), data(imageData), imageSize(imageSize), spriteSize(size),
: x(x), y(y), data(imageData), imageSize(imageSize), spriteSize(size), priority(0),
animationDelay(0), numberOfFrames(0), beginFrame(0), currentFrame(0), animationCounter(0) {
setAttributesBasedOnSize(size);
}