diff options
author | Paul Gilbert | 2011-08-05 22:51:32 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-05 22:51:32 +1000 |
commit | c1294b772f3f459976dacb1c06f45425cc94853b (patch) | |
tree | c22565b1a0ebe85975722c6633004e73ffd94f0b /engines/cge | |
parent | 3ce71737b590ed1306f836c6fb751c2d2654a431 (diff) | |
download | scummvm-rg350-c1294b772f3f459976dacb1c06f45425cc94853b.tar.gz scummvm-rg350-c1294b772f3f459976dacb1c06f45425cc94853b.tar.bz2 scummvm-rg350-c1294b772f3f459976dacb1c06f45425cc94853b.zip |
CGE: Added an assert to test out of bounds sprite shape access
The English version seems to expect a different number of shapes for some sprites, so it will need further work to determine how best to handle the differences.
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/vga13h.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 9b30e02e4d..62b902b19c 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -382,6 +382,7 @@ Sprite *Sprite::expand() { if (len == 0 || *line == '.') continue; + assert(shpcnt <= _shpCnt); switch (takeEnum(Comd, strtok(line, " =\t"))) { case 0 : { // Name setName(strtok(NULL, "")); |