Add safety check.
svn-id: r19912
This commit is contained in:
parent
5da9e63519
commit
50636c33d3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue