aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/vocab_debug.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2009-04-07 17:43:49 +0000
committerWalter van Niftrik2009-04-07 17:43:49 +0000
commitb80abe318d65679d5c0cd8a94a8c106534d240ea (patch)
tree166ba860b019c9b012fb54539377d3ffc29d106a /engines/sci/scicore/vocab_debug.cpp
parent81f7c8b746c8c025daac12cf8e9032778b4b64f0 (diff)
downloadscummvm-rg350-b80abe318d65679d5c0cd8a94a8c106534d240ea.tar.gz
scummvm-rg350-b80abe318d65679d5c0cd8a94a8c106534d240ea.tar.bz2
scummvm-rg350-b80abe318d65679d5c0cd8a94a8c106534d240ea.zip
SCI: Do not skip last entry in kernel table for SCI1.
svn-id: r39895
Diffstat (limited to 'engines/sci/scicore/vocab_debug.cpp')
-rw-r--r--engines/sci/scicore/vocab_debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/scicore/vocab_debug.cpp b/engines/sci/scicore/vocab_debug.cpp
index c159a504a8..9f6c58db82 100644
--- a/engines/sci/scicore/vocab_debug.cpp
+++ b/engines/sci/scicore/vocab_debug.cpp
@@ -481,7 +481,7 @@ static char **vocabulary_get_knames1(ResourceManager *resmgr, int *count) {
// a safe change. If there's any SCI1 game with different kernel vocabulary names, we can
// add special flags to it to our detector
t = (char **)sci_malloc((SCI1_KNAMES_DEFAULT_ENTRIES_NR + 1) * sizeof(char*));
- *count = SCI1_KNAMES_DEFAULT_ENTRIES_NR - 1; // index of last element
+ *count = SCI1_KNAMES_DEFAULT_ENTRIES_NR;
for (int i = 0; i < SCI1_KNAMES_DEFAULT_ENTRIES_NR; i++)
t[i] = sci_strdup(sci1_default_knames[i]);