diff options
author | Max Horn | 2003-03-04 02:43:43 +0000 |
---|---|---|
committer | Max Horn | 2003-03-04 02:43:43 +0000 |
commit | 89f6ebb77cfdb8a758bbd89a51dc0a5580e694e6 (patch) | |
tree | b7cee026ec0913fd22774b1f5ff71593f680c2c6 /scumm/charset.cpp | |
parent | 3f8bab726e52dc7571d8522a9db3276e34175d74 (diff) | |
download | scummvm-rg350-89f6ebb77cfdb8a758bbd89a51dc0a5580e694e6.tar.gz scummvm-rg350-89f6ebb77cfdb8a758bbd89a51dc0a5580e694e6.tar.bz2 scummvm-rg350-89f6ebb77cfdb8a758bbd89a51dc0a5580e694e6.zip |
added some asserts; added a hack that helps the COMI demo
svn-id: r6684
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r-- | scumm/charset.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index dcf09be9e3..89e09f6f74 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -394,7 +394,7 @@ CharsetRendererNut::CharsetRendererNut(Scumm *vm) : CharsetRenderer(vm) { _current = 0; - + for (int i = 0; i < 5; i++) { char fontname[256]; sprintf(fontname, "font%d.nut", i); @@ -417,6 +417,7 @@ void CharsetRendererNut::setCurID(byte id) assert(id < 5); _curId = id; _current = _fr[id]; + assert(_current); } int CharsetRendererNut::getCharWidth(byte chr) |