aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/draw-manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index eca4e22279..1e69130617 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -145,7 +145,7 @@ int DrawMan::isSky(int index) {
for (int i = 0; i < kMaxSkies; i++) {
if(_skyTiles[i] == index) {
- return index + 1; // The skyTiles are indexed from 1. 0 => No Sky tile
+ return i + 1; // The skyTiles are indexed from 1. 0 => No Sky tile
}
}