diff options
| author | Max Horn | 2003-05-01 11:03:41 +0000 |
|---|---|---|
| committer | Max Horn | 2003-05-01 11:03:41 +0000 |
| commit | c77cbc5cb47c1abdac4a4a4b906e21a0861f158b (patch) | |
| tree | ab669217c0f80d458f5a7c675bd6207f129c6e33 /scumm/charset.cpp | |
| parent | f62a4ae83ecbbccd855ec2950c984ba2faeb60f8 (diff) | |
| download | scummvm-rg350-c77cbc5cb47c1abdac4a4a4b906e21a0861f158b.tar.gz scummvm-rg350-c77cbc5cb47c1abdac4a4a4b906e21a0861f158b.tar.bz2 scummvm-rg350-c77cbc5cb47c1abdac4a4a4b906e21a0861f158b.zip | |
Fixed bug #730030: INDY3: Crash when loading new savegames
svn-id: r7240
Diffstat (limited to 'scumm/charset.cpp')
| -rw-r--r-- | scumm/charset.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index 6677e60077..ebadc9b371 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -29,7 +29,9 @@ void CharsetRendererCommon::setCurID(byte id) { _curId = id; _fontPtr = _vm->getResourceAddress(rtCharset, id); - assert(_fontPtr); + if (_fontPtr == 0) + error("CharsetRendererCommon::setCurID: charset %d not found!\n", id); + if (_vm->_features & GF_AFTER_V3) { _nbChars = _fontPtr[4]; _fontPtr += 6 + _nbChars; |
