[Scummvm-cvs-logs] SF.net SVN: scummvm:[46003] scummvm/trunk/engines/sci/gui/gui_menu.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Nov 20 12:08:20 CET 2009


Revision: 46003
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46003&view=rev
Author:   thebluegr
Date:     2009-11-20 11:08:19 +0000 (Fri, 20 Nov 2009)

Log Message:
-----------
Added a sanity check to prevent a crash in LB1 and KQ4 (needs proper fixing)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_menu.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_menu.cpp	2009-11-20 10:29:42 UTC (rev 46002)
+++ scummvm/trunk/engines/sci/gui/gui_menu.cpp	2009-11-20 11:08:19 UTC (rev 46003)
@@ -191,7 +191,8 @@
 		if (rightAlignedPos) {
 			rightAlignedPos++;
 			tempPos = endPos;
-			if (tagPos)
+			//if (tagPos)
+			if (tagPos && tagPos >= rightAlignedPos)	// FIXME: sanity check for LB1 and KQ4
 				tempPos = tagPos;
 			itemEntry->textRightAligned = Common::String(content.c_str() + rightAlignedPos, tempPos - rightAlignedPos);
 		}


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