diff options
author | Eugene Sandulenko | 2016-05-17 19:12:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-17 19:12:14 +0200 |
commit | 921efd6880c5b45f582ecc6e6ef720eebcb4d4c9 (patch) | |
tree | 3543d1495b004a19327de6935f906f8b0066c8c3 /engines | |
parent | fcc94778e4178aefff0de581c8c5dd7482aeacb9 (diff) | |
download | scummvm-rg350-921efd6880c5b45f582ecc6e6ef720eebcb4d4c9.tar.gz scummvm-rg350-921efd6880c5b45f582ecc6e6ef720eebcb4d4c9.tar.bz2 scummvm-rg350-921efd6880c5b45f582ecc6e6ef720eebcb4d4c9.zip |
KYRA: Remove redundant code.
item variable value is less than 33, that is, 32 max. item+1 is never > 33.
Thus, the clapping code is redundant.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/items_lok.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/kyra/items_lok.cpp b/engines/kyra/items_lok.cpp index 55a23b2a1a..3a2e631744 100644 --- a/engines/kyra/items_lok.cpp +++ b/engines/kyra/items_lok.cpp @@ -844,8 +844,6 @@ void KyraEngine_LoK::updatePlayerItemsForScene() { uint8 item = _currentCharacter->inventoryItems[i]; if (item >= 29 && item < 33) { ++item; - if (item > 33) - item = 33; _currentCharacter->inventoryItems[i] = item; redraw = true; } |