aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();