aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-09 00:28:18 +0530
committerEugene Sandulenko2019-09-03 17:16:46 +0200
commit8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f (patch)
treeb4f245e43208e02531ad25f92f242ef2b155753e /engines
parent00022ef0a7fa517ade1a1b38fab8d66bd0d9a09d (diff)
downloadscummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.tar.gz
scummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.tar.bz2
scummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.zip
HDB: Fix isSky to return correct skyIndex
Diffstat (limited to 'engines')
-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
}
}