aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vga13h.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/vga13h.cpp')
-rw-r--r--engines/cge/vga13h.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 8889c59b8d..de28794f3f 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, ""));