aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-01-05 08:19:14 +0000
committerTravis Howell2006-01-05 08:19:14 +0000
commit50636c33d32debef920026da30094b5796e33351 (patch)
tree0e9e342ead7b0b926599f5c8dab4ae36d70a2522 /scumm
parent5da9e6351993d4038a2dec83e9d118d4bd69b2de (diff)
downloadscummvm-rg350-50636c33d32debef920026da30094b5796e33351.tar.gz
scummvm-rg350-50636c33d32debef920026da30094b5796e33351.tar.bz2
scummvm-rg350-50636c33d32debef920026da30094b5796e33351.zip
Add safety check.
svn-id: r19912
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);