aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index bf9c43e8af..a17eab6f03 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -455,7 +455,8 @@ void Gfx::drawSky() {
static int offset = 0, wait = 0;
for (int j = -64; j < kScreenHeight; j += 64) {
for (int i = -64; i < kScreenWidth; i += 64) {
- _skyClouds->draw(i + offset, j + offset);
+ if (_skyClouds)
+ _skyClouds->draw(i + offset, j + offset);
}
}
wait--;