aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/charset.cpp
diff options
context:
space:
mode:
authorTravis Howell2008-01-11 12:53:31 +0000
committerTravis Howell2008-01-11 12:53:31 +0000
commit00ad56bb087244a49f0b0b31faf1a75c182e18e7 (patch)
tree16844d0b8ae57f08a7738800177852e5f03aad44 /engines/agos/charset.cpp
parent05b28340bf5eed3123cc72f54c96390e1a54adb0 (diff)
downloadscummvm-rg350-00ad56bb087244a49f0b0b31faf1a75c182e18e7.tar.gz
scummvm-rg350-00ad56bb087244a49f0b0b31faf1a75c182e18e7.tar.bz2
scummvm-rg350-00ad56bb087244a49f0b0b31faf1a75c182e18e7.zip
Fix assert that can be triggered in non-English versions of The Feeble Files for Amiga/Macintosh.
svn-id: r30406
Diffstat (limited to 'engines/agos/charset.cpp')
-rw-r--r--engines/agos/charset.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp
index 8121fac35a..0938669bca 100644
--- a/engines/agos/charset.cpp
+++ b/engines/agos/charset.cpp
@@ -356,7 +356,13 @@ void AGOSEngine::renderString(uint vga_sprite_id, uint color, uint width, uint h
dst -= img_width - 1; // For Hebrew, move from right edge to left edge of image.
byte *cur_dst = dst;
- assert(img_width > 0 && img_width < 50 && img_height > 0 && img_height < 50);
+ // Occurs in Amiga and Macintosh ports of The Feeble Files, when
+ // special characters are used by French/German/Spanish versions.
+ // Due to the English image data, been used by all languages.
+ if (img_width == 0 || img_height == 0)
+ continue;
+
+ assert(img_width < 50 && img_height < 50);
do {
for (i = 0; i != img_width; i++) {