Add an assert to avoid a crash when printing the character 0x00.
svn-id: r47945
This commit is contained in:
parent
ceba3a6ce9
commit
b8875aca0c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue