aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Göffringmann2004-11-18 17:48:50 +0000
committerRobert Göffringmann2004-11-18 17:48:50 +0000
commit589ce6d6aa51d36598457ca48b936a009c8b7462 (patch)
tree9f570ea755fa153604a45fea7b01469ca9c5cbc3
parentf80bdba62fd694c29a61b90898c57af8104793c5 (diff)
downloadscummvm-rg350-589ce6d6aa51d36598457ca48b936a009c8b7462.tar.gz
scummvm-rg350-589ce6d6aa51d36598457ca48b936a009c8b7462.tar.bz2
scummvm-rg350-589ce6d6aa51d36598457ca48b936a009c8b7462.zip
fixes a crash when closing BS1 while speech menu is open.
svn-id: r15828
-rw-r--r--sword1/menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/menu.cpp b/sword1/menu.cpp
index 89eac4ed2e..53075806ff 100644
--- a/sword1/menu.cpp
+++ b/sword1/menu.cpp
@@ -109,7 +109,7 @@ Menu::~Menu(void) {
delete _objects[i];
_objects[i] = NULL;
}
- for (int i = 0; i < TOTAL_subjects; i++) {
+ for (int i = 0; i < 16; i++) {
delete _subjects[i];
_subjects[i] = NULL;
}