From 4c7c82634d9b3d9383bef5ac642e1baaa8a55f8c Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 20 Sep 2008 16:21:27 +0000 Subject: 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 --- engines/scumm/charset-fontdata.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/scumm') 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: -- cgit v1.2.3