diff options
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r-- | scumm/string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index 48a6646fad..24d709ec3f 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -599,7 +599,7 @@ void ScummEngine::addVerbToStack(int var) { num = readVar(var); if (num) { - for (k = 1; k < _maxVerbs; k++) { + for (k = 1; k < _numVerbs; k++) { if (num == _verbs[k].verbid && !_verbs[k].type && !_verbs[k].saveid) { const byte *ptr = getResourceAddress(rtVerb, k); ptr = translateTextAndPlaySpeech(ptr); |