aboutsummaryrefslogtreecommitdiff
path: root/scumm/actor.h
diff options
context:
space:
mode:
authorTravis Howell2004-10-02 10:58:15 +0000
committerTravis Howell2004-10-02 10:58:15 +0000
commite7cff906a9a2222f8a20933f02f5b1a078d07868 (patch)
tree26634ddf12588d24e605789e03400fa9b01da1db /scumm/actor.h
parent1345fcac14c17ba63e0db8b2dfb68c2e7cf5577c (diff)
downloadscummvm-rg350-e7cff906a9a2222f8a20933f02f5b1a078d07868.tar.gz
scummvm-rg350-e7cff906a9a2222f8a20933f02f5b1a078d07868.tar.bz2
scummvm-rg350-e7cff906a9a2222f8a20933f02f5b1a078d07868.zip
Increase Actor animVariable for HE80+ games.
svn-id: r15382
Diffstat (limited to 'scumm/actor.h')
-rw-r--r--scumm/actor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/actor.h b/scumm/actor.h
index e4e219c9ec..acb8110e68 100644
--- a/scumm/actor.h
+++ b/scumm/actor.h
@@ -152,7 +152,7 @@ protected:
byte animProgress, animSpeed;
bool costumeNeedsInit;
ActorWalkData walkdata;
- int16 animVariable[16];
+ int16 animVariable[27];
static ScummEngine *_vm;
@@ -222,9 +222,11 @@ public:
}
int getAnimVar(byte var) const {
+ checkRange(26, 0, var, "getAnimVar %d out of range(r)");
return animVariable[var];
}
void setAnimVar(byte var, int value) {
+ checkRange(26, 0, var, "setAnimVar %d out of range(r)");
animVariable[var] = value;
}