From 8410dbab539a8c278b29e9047bd5c192a3048e32 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 28 Jun 2010 14:49:54 +0000 Subject: SCI: stupid oversight fix r50446, too hot here :P svn-id: r50447 --- engines/sci/engine/script.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine/script.cpp') diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index 4100ca6448..a293f81d2f 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -412,12 +412,13 @@ void Script::initialiseClasses(SegManager *segMan) { uint16 marker; bool isClass; - uint16 classpos = seeker - _buf; + uint16 classpos; int16 species = 0; while (true) { // In SCI0-SCI1, this is the segment type. In SCI11, it's a marker (0x1234) marker = READ_SCI11ENDIAN_UINT16(seeker); + classpos = seeker - _buf; if (!marker) break; -- cgit v1.2.3