summaryrefslogtreecommitdiff
path: root/src/resources/atlas/atlasitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/atlas/atlasitem.h')
-rw-r--r--src/resources/atlas/atlasitem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/atlas/atlasitem.h b/src/resources/atlas/atlasitem.h
index 5d2762fb5..4da78af6e 100644
--- a/src/resources/atlas/atlasitem.h
+++ b/src/resources/atlas/atlasitem.h
@@ -33,8 +33,8 @@ struct AtlasItem final : public MemoryCounter
name(),
x(0),
y(0),
- width(image0 ? image0->mBounds.w : 0),
- height(image0 ? image0->mBounds.h : 0)
+ width(image0 != nullptr ? image0->mBounds.w : 0),
+ height(image0 != nullptr ? image0->mBounds.h : 0)
{
}