[Scummvm-cvs-logs] SF.net SVN: scummvm:[47945] scummvm/trunk/engines/gob/video.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Sat Feb 6 23:48:36 CET 2010
Revision: 47945
http://scummvm.svn.sourceforge.net/scummvm/?rev=47945&view=rev
Author: strangerke
Date: 2010-02-06 22:48:36 +0000 (Sat, 06 Feb 2010)
Log Message:
-----------
Add an assert to avoid a crash when printing the character 0x00.
Modified Paths:
--------------
scummvm/trunk/engines/gob/video.cpp
Modified: scummvm/trunk/engines/gob/video.cpp
===================================================================
--- scummvm/trunk/engines/gob/video.cpp 2010-02-06 22:47:13 UTC (rev 47944)
+++ scummvm/trunk/engines/gob/video.cpp 2010-02-06 22:48:36 UTC (rev 47945)
@@ -484,6 +484,7 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list