[Scummvm-cvs-logs] SF.net SVN: scummvm: [29835] scummvm/trunk/engines/lure/surface.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Wed Dec 12 09:56:35 CET 2007


Revision: 29835
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29835&view=rev
Author:   dreammaster
Date:     2007-12-12 00:56:34 -0800 (Wed, 12 Dec 2007)

Log Message:
-----------
Bugfix to return correct article indexes

Modified Paths:
--------------
    scummvm/trunk/engines/lure/surface.cpp

Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp	2007-12-12 08:49:41 UTC (rev 29834)
+++ scummvm/trunk/engines/lure/surface.cpp	2007-12-12 08:56:34 UTC (rev 29835)
@@ -569,7 +569,7 @@
 				for (const uint16 *p = germanArticles[sectionIndex].translations; *p != 0; p += 2) {
 					if (*p == id) 
 						// Return the article index to use
-						return *++p;
+						return *++p + 1;
 				}
 
 				return 0;
@@ -587,7 +587,7 @@
 		for (const uint16 *p = tlData; *p != 0; p += 2) {
 			if (*p == id) 
 				// Return the article index to use
-				return *++p;
+				return *++p + 1;
 		}
 
 		return 0;


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