TONY: Added assert for character indexes outside provided font

This commit is contained in:
Paul Gilbert 2012-05-20 09:23:12 +10:00
parent b63c28c1a0
commit e76a55588a

View File

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