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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat Oct 24 20:52:57 CEST 2009


Revision: 45361
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45361&view=rev
Author:   athrxx
Date:     2009-10-24 18:52:57 +0000 (Sat, 24 Oct 2009)

Log Message:
-----------
LOL: fixed bug in spell casting code

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

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-10-24 13:26:12 UTC (rev 45360)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-10-24 18:52:57 UTC (rev 45361)
@@ -1989,7 +1989,7 @@
 			return 0;
 
 		setCharacterMagicOrHitPoints(charNum, 1, -_activeSpell.p->mpRequired[spellLevel], 1);
-		setCharacterMagicOrHitPoints(charNum, 0, -_activeSpell.p[1].hpRequired[spellLevel], 1);
+		setCharacterMagicOrHitPoints(charNum, 0, -_activeSpell.p->hpRequired[spellLevel], 1);
 		gui_drawCharPortraitWithStats(charNum);
 
 		if (_spellProcs[spellType]->isValid())


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