diff options
author | Nipun Garg | 2019-06-09 00:28:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:46 +0200 |
commit | 8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f (patch) | |
tree | b4f245e43208e02531ad25f92f242ef2b155753e | |
parent | 00022ef0a7fa517ade1a1b38fab8d66bd0d9a09d (diff) | |
download | scummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.tar.gz scummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.tar.bz2 scummvm-rg350-8f8d6782b8806ace11a9b3a0ce9d4d578f717e5f.zip |
HDB: Fix isSky to return correct skyIndex
-rw-r--r-- | engines/hdb/draw-manager.cpp | 2 |
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 } } |