diff options
author | athrxx | 2011-06-16 18:51:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:11 +0100 |
commit | c8665d06bc59b695cb6c444b1e3c24104b69dec4 (patch) | |
tree | ec3bc2c47bb27e2b9d8ed9eaf3ce993513f5fe67 /engines/kyra/magic_eob.cpp | |
parent | adbf14c3c480890dfb155b896d1805e102311aa9 (diff) | |
download | scummvm-rg350-c8665d06bc59b695cb6c444b1e3c24104b69dec4.tar.gz scummvm-rg350-c8665d06bc59b695cb6c444b1e3c24104b69dec4.tar.bz2 scummvm-rg350-c8665d06bc59b695cb6c444b1e3c24104b69dec4.zip |
KYRA: (EOB) - fix some warnings and add some menu code
Diffstat (limited to 'engines/kyra/magic_eob.cpp')
-rw-r--r-- | engines/kyra/magic_eob.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/magic_eob.cpp b/engines/kyra/magic_eob.cpp index 16e8996340..2c83c26b83 100644 --- a/engines/kyra/magic_eob.cpp +++ b/engines/kyra/magic_eob.cpp @@ -175,13 +175,14 @@ void EobCoreEngine::castSpell(int spell, int weaponSlot) { memmove(&_openBookAvailableSpells[_openBookSpellLevel * 10 + _openBookSpellListOffset + _openBookSpellSelectedItem], &_openBookAvailableSpells[_openBookSpellLevel * 10 + _openBookSpellListOffset + _openBookSpellSelectedItem + 1], 8 - (_openBookSpellListOffset + _openBookSpellSelectedItem)); _openBookAvailableSpells[_openBookSpellLevel * 10 + 8] = -tmp; if (_openBookAvailableSpells[_openBookSpellLevel * 10 + _openBookSpellListOffset + _openBookSpellSelectedItem] < 0) { - if (--_openBookSpellSelectedItem == -1) + if (--_openBookSpellSelectedItem == -1) { if (_openBookSpellListOffset) { _openBookSpellListOffset = 0; _openBookSpellSelectedItem = 5; } else { _openBookSpellSelectedItem = 6; } + } } } else if (weaponSlot != -1) { updateUsedCharacterHandItem(_openBookChar, weaponSlot); |