aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-09-20 16:21:27 +0000
committerTorbjörn Andersson2008-09-20 16:21:27 +0000
commit4c7c82634d9b3d9383bef5ac642e1baaa8a55f8c (patch)
treed0ffc7125a49ad2dda21965043b64495e3ad7c22 /engines/scumm
parent383014f330639da5bddfd6ba94a2974d6d286196 (diff)
downloadscummvm-rg350-4c7c82634d9b3d9383bef5ac642e1baaa8a55f8c.tar.gz
scummvm-rg350-4c7c82634d9b3d9383bef5ac642e1baaa8a55f8c.tar.bz2
scummvm-rg350-4c7c82634d9b3d9383bef5ac642e1baaa8a55f8c.zip
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. svn-id: r34619
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/charset-fontdata.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/scumm/charset-fontdata.cpp b/engines/scumm/charset-fontdata.cpp
index 6a45d53139..e9a496f6ed 100644
--- a/engines/scumm/charset-fontdata.cpp
+++ b/engines/scumm/charset-fontdata.cpp
@@ -1070,6 +1070,7 @@ CharsetRendererV2::CharsetRendererV2(ScummEngine *vm, Common::Language language)
: CharsetRendererV3(vm) {
_fontHeight = 8;
+ _curId = 0;
switch (language) {
case Common::DE_DEU: