diff options
author | Walter van Niftrik | 2009-04-07 17:43:49 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-04-07 17:43:49 +0000 |
commit | b80abe318d65679d5c0cd8a94a8c106534d240ea (patch) | |
tree | 166ba860b019c9b012fb54539377d3ffc29d106a | |
parent | 81f7c8b746c8c025daac12cf8e9032778b4b64f0 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/sci/scicore/vocab_debug.cpp | 2 |
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]); |