diff options
author | Johannes Schickel | 2009-01-18 17:24:47 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-01-18 17:24:47 +0000 |
commit | c003d62429399db2d8ca11dc66461a98c52d0538 (patch) | |
tree | 0ffca70e1eaa1b67459bab4a86f69141a4c59cc3 /engines/kyra/script.h | |
parent | ec5b64147dd7bf883cefb205c2801c068358dc1a (diff) | |
download | scummvm-rg350-c003d62429399db2d8ca11dc66461a98c52d0538.tar.gz scummvm-rg350-c003d62429399db2d8ca11dc66461a98c52d0538.tar.bz2 scummvm-rg350-c003d62429399db2d8ca11dc66461a98c52d0538.zip |
- Fixed bug in script code of LoL
- Cleanup
svn-id: r35905
Diffstat (limited to 'engines/kyra/script.h')
-rw-r--r-- | engines/kyra/script.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/kyra/script.h b/engines/kyra/script.h index ae9ece8154..7d6c9d5243 100644 --- a/engines/kyra/script.h +++ b/engines/kyra/script.h @@ -47,13 +47,18 @@ struct EMCData { }; struct EMCState { + enum { + kStackSize = 100, + kStackLastEntry = kStackSize - 1 + }; + const uint16 *ip; const EMCData *dataPtr; int16 retValue; uint16 bp; uint16 sp; - int16 regs[30]; // VM registers - int16 stack[100]; // VM stack + int16 regs[30]; // VM registers + int16 stack[kStackSize]; // VM stack }; #define stackPos(x) (script->stack[script->sp+x]) |