aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}