aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/static_selectors.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-09-06 11:30:26 +0000
committerFilippos Karapetis2010-09-06 11:30:26 +0000
commit397f88369816ca28414c3255e81ecdc454c8f3cb (patch)
tree7a28e19c0c1ae38c50eb1310884be72e4df0bfc3 /engines/sci/engine/static_selectors.cpp
parentbab5050531b7d026d0688ef0eebaf9608c687eb1 (diff)
downloadscummvm-rg350-397f88369816ca28414c3255e81ecdc454c8f3cb.tar.gz
scummvm-rg350-397f88369816ca28414c3255e81ecdc454c8f3cb.tar.bz2
scummvm-rg350-397f88369816ca28414c3255e81ecdc454c8f3cb.zip
SCI: Fixed an off-by one access error in the static selectors of some games
svn-id: r52586
Diffstat (limited to 'engines/sci/engine/static_selectors.cpp')
-rw-r--r--engines/sci/engine/static_selectors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp
index a65c35b69c..208991237a 100644
--- a/engines/sci/engine/static_selectors.cpp
+++ b/engines/sci/engine/static_selectors.cpp
@@ -184,8 +184,8 @@ Common::StringArray Kernel::checkStaticSelectorNames() {
// The init selector is always the first function
int initSelectorPos = actorClass->getFuncSelector(0);
- if (names.size() < (uint32)initSelectorPos + 1)
- names.resize((uint32)initSelectorPos + 1);
+ if (names.size() < (uint32)initSelectorPos + 2)
+ names.resize((uint32)initSelectorPos + 2);
names[initSelectorPos] = "init";
// dispose comes right after init