aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/actor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index a28cc6f7c0..c7d7b75c2b 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1153,6 +1153,7 @@ void Actor::drawActorCostume(bool hitTestMode) {
if (talkState == 0)
talkState = _vm->_rnd.getRandomNumberRng(1, 10);
+ checkRange(13, 1, talkState, "Talk state %d out of range");
setTalkCondition(talkState);
} else {
setTalkCondition(1);