aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2010-01-18 07:21:54 +0000
committerFlorian Kagerer2010-01-18 07:21:54 +0000
commit4c9f323199933aaf5dfd76b566bc0ff03f9bb0ff (patch)
tree7730eab89afdf915392ef62701ad0a2918c9d0ac /engines
parent371a2a9ee9009d7acd6e837fa2ee6c0e383e058c (diff)
downloadscummvm-rg350-4c9f323199933aaf5dfd76b566bc0ff03f9bb0ff.tar.gz
scummvm-rg350-4c9f323199933aaf5dfd76b566bc0ff03f9bb0ff.tar.bz2
scummvm-rg350-4c9f323199933aaf5dfd76b566bc0ff03f9bb0ff.zip
LOL: cleanup last commit
svn-id: r47354
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/lol.cpp3
-rw-r--r--engines/kyra/saveload_lol.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 314a360813..41d017223b 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -519,6 +519,8 @@ Common::Error LoLEngine::init() {
_automapShapes = new const uint8*[109];
_mapOverlay = new uint8[256];
+ memset(_availableSpells, -1, 8);
+
_spellProcs.push_back(new SpellProc(this, &LoLEngine::castSpark));
_spellProcs.push_back(new SpellProc(this, &LoLEngine::castHeal));
_spellProcs.push_back(new SpellProc(this, &LoLEngine::castIce));
@@ -891,7 +893,6 @@ void LoLEngine::startupNew() {
_inventory[1] = makeItem(217, 0, 0);
_inventory[2] = makeItem(218, 0, 0);
- memset(_availableSpells, -1, 8);
_availableSpells[0] = 0;
setupScreenDims();
diff --git a/engines/kyra/saveload_lol.cpp b/engines/kyra/saveload_lol.cpp
index ccce8b58f7..480714e5c9 100644
--- a/engines/kyra/saveload_lol.cpp
+++ b/engines/kyra/saveload_lol.cpp
@@ -267,7 +267,6 @@ Common::Error LoLEngine::loadGameState(int slot) {
gui_drawPlayField();
timerSpecialCharacterUpdate(0);
_flagsTable[73] |= 0x08;
- _availableSpells[7] = -1;
while (!_screen->isMouseVisible())
_screen->showMouse();