diff options
author | Filippos Karapetis | 2010-09-06 11:30:26 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-06 11:30:26 +0000 |
commit | 397f88369816ca28414c3255e81ecdc454c8f3cb (patch) | |
tree | 7a28e19c0c1ae38c50eb1310884be72e4df0bfc3 /engines/sci | |
parent | bab5050531b7d026d0688ef0eebaf9608c687eb1 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/sci/engine/static_selectors.cpp | 4 |
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 |