aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2011-09-26 21:07:56 +0200
committerathrxx2011-10-01 18:35:05 +0200
commit9b2848ba90f2ff81483409142a11a2155696bfac (patch)
treebb3474805f7face94a90bade4e99a46ccc586608 /engines
parent74f3a29c1913bfac1cd0f4c6edabf2fb58334c1c (diff)
downloadscummvm-rg350-9b2848ba90f2ff81483409142a11a2155696bfac.tar.gz
scummvm-rg350-9b2848ba90f2ff81483409142a11a2155696bfac.tar.bz2
scummvm-rg350-9b2848ba90f2ff81483409142a11a2155696bfac.zip
KYRA: fix typo
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_hof.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index c9603a2523..4497ab8019 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -1087,7 +1087,7 @@ void KyraEngine_HoF::resetScaleTable() {
}
void KyraEngine_HoF::setScaleTableItem(int item, int data) {
- if (item >= 1 || item <= 15)
+ if (item >= 1 && item <= 15)
_scaleTable[item-1] = (data << 8) / 100;
}
@@ -1096,7 +1096,7 @@ int KyraEngine_HoF::getScale(int x, int y) {
}
void KyraEngine_HoF::setDrawLayerTableEntry(int entry, int data) {
- if (entry >= 1 || entry <= 15)
+ if (entry >= 1 && entry <= 15)
_drawLayerTable[entry-1] = data;
}