aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-20 09:23:12 +1000
committerPaul Gilbert2012-05-20 09:23:12 +1000
commite76a55588af1deb9a14bb8d89d4d818ea8120d96 (patch)
treeda55f5c918a4ac31d452f5709eb56b34709af2f1 /engines
parentb63c28c1a021c24c832cc0ad4a4274d1899e9440 (diff)
downloadscummvm-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.cpp1
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);