Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarDrawable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarDrawable.cpp')
-rw-r--r--source/game/StarDrawable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarDrawable.cpp b/source/game/StarDrawable.cpp
index 0aea570..e259aa2 100644
--- a/source/game/StarDrawable.cpp
+++ b/source/game/StarDrawable.cpp
@@ -10,7 +10,7 @@
namespace Star {
Drawable::ImagePart& Drawable::ImagePart::addDirectives(Directives const& directives, bool keepImageCenterPosition) {
- if (directives.entries->empty())
+ if (!directives.entries || directives.entries->empty())
return *this;
if (keepImageCenterPosition) {