[Scummvm-cvs-logs] SF.net SVN: scummvm:[34619] scummvm/trunk/engines/scumm/charset-fontdata. cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sat Sep 20 18:21:28 CEST 2008


Revision: 34619
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34619&view=rev
Author:   eriktorbjorn
Date:     2008-09-20 16:21:27 +0000 (Sat, 20 Sep 2008)

Log Message:
-----------
I think this is the correct fix for bug #2081347 ("MM: Charset out of
bounds!"). If I understand correctly, version <= 2 games only have one (hard-
coded) font, so when that's initialised we can set _curId to 0.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/charset-fontdata.cpp

Modified: scummvm/trunk/engines/scumm/charset-fontdata.cpp
===================================================================
--- scummvm/trunk/engines/scumm/charset-fontdata.cpp	2008-09-20 16:14:03 UTC (rev 34618)
+++ scummvm/trunk/engines/scumm/charset-fontdata.cpp	2008-09-20 16:21:27 UTC (rev 34619)
@@ -1070,6 +1070,7 @@
 	: CharsetRendererV3(vm) {
 
 	_fontHeight = 8;
+	_curId = 0;
 
 	switch (language) {
 	case Common::DE_DEU:


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