mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
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.
This commit is contained in:
parent
fcc94778e4
commit
921efd6880
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user