aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e1.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-10-25 05:32:15 +0000
committerTravis Howell2006-10-25 05:32:15 +0000
commit869243142ad4e42c23c52617414fe737c3eead86 (patch)
tree0ea16da05bd36c44ed96da9b69ce6262a9f8942f /engines/agos/script_e1.cpp
parent8b0f34e193f571f10d990efba1a5a8e229bc0957 (diff)
downloadscummvm-rg350-869243142ad4e42c23c52617414fe737c3eead86.tar.gz
scummvm-rg350-869243142ad4e42c23c52617414fe737c3eead86.tar.bz2
scummvm-rg350-869243142ad4e42c23c52617414fe737c3eead86.zip
Add class code used by scripts in Elvira 1
svn-id: r24491
Diffstat (limited to 'engines/agos/script_e1.cpp')
-rw-r--r--engines/agos/script_e1.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agos/script_e1.cpp b/engines/agos/script_e1.cpp
index 3339ffdbf0..5468e1cb27 100644
--- a/engines/agos/script_e1.cpp
+++ b/engines/agos/script_e1.cpp
@@ -344,8 +344,7 @@ void AGOSEngine::oe1_doClass() {
int16 num = getVarOrWord();
_classMask = (cm != -1) ? 1 << cm : 0;
- //_classLine = (SubroutineLine *)((uint32)_currentLine->next+(uint32)_currentTable);
-
+ _classLine = (SubroutineLine *)((byte *)_currentTable + _currentLine->next);
if (num == 1) {
_subjectItem = findInByClass(i, (1 << cm));
if (_subjectItem)