summaryrefslogtreecommitdiff
path: root/src/resources/atlasitem.h
diff options
context:
space:
mode:
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)
{
}