From c003d62429399db2d8ca11dc66461a98c52d0538 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 18 Jan 2009 17:24:47 +0000 Subject: - Fixed bug in script code of LoL - Cleanup svn-id: r35905 --- engines/kyra/script.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/kyra/script.h') 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]) -- cgit v1.2.3