diff options
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r-- | src/compoundsprite.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h index e5b41973..7c91eb73 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -95,13 +95,13 @@ private: void redraw() const; - mutable Image *mImage; - mutable Image *mAlphaImage; + mutable Image *mImage = nullptr; + mutable Image *mAlphaImage = nullptr; - mutable int mWidth, mHeight; - mutable int mOffsetX, mOffsetY; + mutable int mWidth = 0, mHeight = 0; + mutable int mOffsetX = 0, mOffsetY = 0; - mutable bool mNeedsRedraw; + mutable bool mNeedsRedraw = false; std::vector<Sprite*> mSprites; }; |