aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Boutonné2010-02-06 22:48:36 +0000
committerArnaud Boutonné2010-02-06 22:48:36 +0000
commitb8875aca0c20f6be53a862a54277b51d25f84f8f (patch)
treecf56251ec35d47e0b87532b88502ec46d2abccc9
parentceba3a6ce9481e08ccb51b2910b251c99541a9ac (diff)
downloadscummvm-rg350-b8875aca0c20f6be53a862a54277b51d25f84f8f.tar.gz
scummvm-rg350-b8875aca0c20f6be53a862a54277b51d25f84f8f.tar.bz2
scummvm-rg350-b8875aca0c20f6be53a862a54277b51d25f84f8f.zip
Add an assert to avoid a crash when printing the character 0x00.
svn-id: r47945
-rw-r--r--engines/gob/video.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/gob/video.cpp b/engines/gob/video.cpp
index 5684a1f443..9e1039f659 100644
--- a/engines/gob/video.cpp
+++ b/engines/gob/video.cpp
@@ -484,6 +484,7 @@ void Video::drawSpriteDouble(SurfaceDesc &source, SurfaceDesc &dest,
void Video::drawLetter(int16 item, int16 x, int16 y, const Font &font,
int16 color1, int16 color2, int16 transp, SurfaceDesc &dest) {
+ assert(item != 0x00);
_videoDriver->drawLetter((unsigned char)item, x, y, font, color1, color2, transp, dest);
}