aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/text_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/text_v2.cpp b/engines/kyra/text_v2.cpp
index c968d41aed..3dbcd8b4cc 100644
--- a/engines/kyra/text_v2.cpp
+++ b/engines/kyra/text_v2.cpp
@@ -200,7 +200,7 @@ void KyraEngine_v2::objectChat(const char *str, int object, int vocHigh, int voc
3, 4, 5
};
- assert(_mainCharacter.facing * 3 + object < ARRAYSIZE(talkScriptTable));
+ assert(_mainCharacter.facing * 3 + chatType < ARRAYSIZE(talkScriptTable));
int script = talkScriptTable[_mainCharacter.facing * 3 + chatType];
static const char *chatScriptFilenames[] = {