[Scummvm-cvs-logs] SF.net SVN: scummvm:[47353] scummvm/trunk/engines/kyra

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Mon Jan 18 01:56:30 CET 2010


Revision: 47353
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47353&view=rev
Author:   athrxx
Date:     2010-01-18 00:56:30 +0000 (Mon, 18 Jan 2010)

Log Message:
-----------
LOL: fixed spell array size

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/lol.cpp
    scummvm/trunk/engines/kyra/lol.h
    scummvm/trunk/engines/kyra/saveload_lol.cpp

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2010-01-17 23:10:38 UTC (rev 47352)
+++ scummvm/trunk/engines/kyra/lol.cpp	2010-01-18 00:56:30 UTC (rev 47353)
@@ -891,7 +891,7 @@
 	_inventory[1] = makeItem(217, 0, 0);
 	_inventory[2] = makeItem(218, 0, 0);
 
-	memset(_availableSpells, -1, 7);
+	memset(_availableSpells, -1, 8);
 	_availableSpells[0] = 0;
 	setupScreenDims();
 

Modified: scummvm/trunk/engines/kyra/lol.h
===================================================================
--- scummvm/trunk/engines/kyra/lol.h	2010-01-17 23:10:38 UTC (rev 47352)
+++ scummvm/trunk/engines/kyra/lol.h	2010-01-18 00:56:30 UTC (rev 47353)
@@ -1390,7 +1390,7 @@
 	void inflictMagicalDamageForBlock(int block, int attacker, int damage, int index);
 
 	ActiveSpell _activeSpell;
-	int8 _availableSpells[7];
+	int8 _availableSpells[8];
 	int _selectedSpell;
 	const SpellProperty *_spellProperties;
 	int _spellPropertiesSize;

Modified: scummvm/trunk/engines/kyra/saveload_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload_lol.cpp	2010-01-17 23:10:38 UTC (rev 47352)
+++ scummvm/trunk/engines/kyra/saveload_lol.cpp	2010-01-18 00:56:30 UTC (rev 47353)
@@ -267,6 +267,7 @@
 	gui_drawPlayField();
 	timerSpecialCharacterUpdate(0);
 	_flagsTable[73] |= 0x08;
+	_availableSpells[7] = -1;
 
 	while (!_screen->isMouseVisible())
 		_screen->showMouse();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list