Skip to content

Commit

Permalink
TONY: Added assert for character indexes outside provided font
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 19, 2012
1 parent b63c28c commit e76a555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/tony/font.cpp
Expand Up @@ -120,6 +120,7 @@ RMGfxPrimitive *RMFont::MakeLetterPrimitive(byte bChar, int &nLength) {

// Converte da carattere a lettera
nLett = ConvertToLetter(bChar);
assert(nLett < nLetters);

// Crea la primitiva per il font
prim = new RMFontPrimitive(this);
Expand Down

0 comments on commit e76a555

Please sign in to comment.