Add an assert to avoid a crash when printing the character 0x00.

svn-id: r47945
This commit is contained in:
Arnaud Boutonné 2010-02-06 22:48:36 +00:00
parent ceba3a6ce9
commit b8875aca0c

View file

@ -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);
}