summaryrefslogtreecommitdiff
path: root/src/resources/atlasitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 18:41:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 22:08:24 +0300
commitd49a520d19f28c613c68b574686b182a9c0621be (patch)
tree5b6943125fd364eaaaaa295b45100cdfc473dd93 /src/resources/atlasitem.h
parent14f55eb8c6e44763e70046b9661bd056280226a5 (diff)
downloadmanaverse-d49a520d19f28c613c68b574686b182a9c0621be.tar.gz
manaverse-d49a520d19f28c613c68b574686b182a9c0621be.tar.bz2
manaverse-d49a520d19f28c613c68b574686b182a9c0621be.tar.xz
manaverse-d49a520d19f28c613c68b574686b182a9c0621be.zip
Add missing checks into resources directory.
Diffstat (limited to 'src/resources/atlasitem.h')
-rw-r--r--src/resources/atlasitem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/atlasitem.h b/src/resources/atlasitem.h
index b404dac48..59485f691 100644
--- a/src/resources/atlasitem.h
+++ b/src/resources/atlasitem.h
@@ -34,8 +34,8 @@ struct AtlasItem final
name(),
x(0),
y(0),
- width(image0->mBounds.w),
- height(image0->mBounds.h)
+ width(image0 ? image0->mBounds.w : 0),
+ height(image0 ? image0->mBounds.h : 0)
{
}