aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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