diff options
author | Paul Gilbert | 2012-05-20 09:23:12 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-20 09:23:12 +1000 |
commit | e76a55588af1deb9a14bb8d89d4d818ea8120d96 (patch) | |
tree | da55f5c918a4ac31d452f5709eb56b34709af2f1 /engines | |
parent | b63c28c1a021c24c832cc0ad4a4274d1899e9440 (diff) | |
download | scummvm-rg350-e76a55588af1deb9a14bb8d89d4d818ea8120d96.tar.gz scummvm-rg350-e76a55588af1deb9a14bb8d89d4d818ea8120d96.tar.bz2 scummvm-rg350-e76a55588af1deb9a14bb8d89d4d818ea8120d96.zip |
TONY: Added assert for character indexes outside provided font
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tony/font.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tony/font.cpp b/engines/tony/font.cpp index db51dc3b79..b0e42407cf 100644 --- a/engines/tony/font.cpp +++ b/engines/tony/font.cpp @@ -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); |