From b8875aca0c20f6be53a862a54277b51d25f84f8f Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sat, 6 Feb 2010 22:48:36 +0000 Subject: Add an assert to avoid a crash when printing the character 0x00. svn-id: r47945 --- engines/gob/video.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/gob') 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); } -- cgit v1.2.3