From 9b2848ba90f2ff81483409142a11a2155696bfac Mon Sep 17 00:00:00 2001 From: athrxx Date: Mon, 26 Sep 2011 21:07:56 +0200 Subject: KYRA: fix typo --- engines/kyra/kyra_hof.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3