aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/script.h')
-rw-r--r--engines/m4/script.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/script.h b/engines/m4/script.h
index 7382c05b67..32b5701419 100644
--- a/engines/m4/script.h
+++ b/engines/m4/script.h
@@ -223,7 +223,7 @@ public:
uint32 readUint32();
protected:
ScriptInterpreter *_inter;
- Common::MemoryReadStream *_code;
+ Common::SeekableReadStream *_code;
};
struct ScriptFunctionEntry {
@@ -305,7 +305,7 @@ public:
// Is this ok?
template<class T>
const T& toData(const ScriptValue &value) {
- printf("ScriptInterpreter::toData() index = %d; type = %d; max = %d\n", value.value, _data[value.value]->type, _data.size());
+ debugCN(kDebugScript, "ScriptInterpreter::toData() index = %d; type = %d; max = %d\n", value.value, _data[value.value]->type, _data.size());
assert((uint32)value.value < _data.size());
T *result = 0;
_dataCache->load(_scriptFile, _data[value.value]->offset, result);