diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-24 17:29:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 22:08:19 +0300 |
commit | 14f55eb8c6e44763e70046b9661bd056280226a5 (patch) | |
tree | d255d2765b33f10f2928fa4da3f0bd45f477cea6 /src/gui/skin.cpp | |
parent | e42d8efbde5c2a560d3ed47347281422a76be22f (diff) | |
download | ManaVerse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.gz ManaVerse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.bz2 ManaVerse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.xz ManaVerse-14f55eb8c6e44763e70046b9661bd056280226a5.zip |
Add missing non null attributes into gui directory.
Diffstat (limited to 'src/gui/skin.cpp')
-rw-r--r-- | src/gui/skin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/skin.cpp b/src/gui/skin.cpp index 5ffd3c7c9..602d7204e 100644 --- a/src/gui/skin.cpp +++ b/src/gui/skin.cpp @@ -42,10 +42,10 @@ Skin::Skin(ImageRect *const restrict skin, mFilePath(filePath), mName(name), mBorder(skin), - mCloseImage(images->grid[0]), - mCloseImageHighlighted(images->grid[1]), - mStickyImageUp(images->grid[2]), - mStickyImageDown(images->grid[3]), + mCloseImage(images ? images->grid[0] : nullptr), + mCloseImageHighlighted(images ? images->grid[1] : nullptr), + mStickyImageUp(images ? images->grid[2] : nullptr), + mStickyImageDown(images ? images->grid[3] : nullptr), mPadding(padding), mTitlePadding(titlePadding), mOptions(options) |