From ba6f9ab9a889e0780a8e7fb9da20ada9610241c3 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 26 May 2008 07:18:06 +0000 Subject: Possible fix for bug #1949230: "M4: compilation error" svn-id: r32277 --- engines/m4/script.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/m4') diff --git a/engines/m4/script.h b/engines/m4/script.h index a59bf46e86..7215d57bbd 100644 --- a/engines/m4/script.h +++ b/engines/m4/script.h @@ -300,7 +300,8 @@ public: const T& toData(const ScriptValue &value) { printf("ScriptInterpreter::toData() index = %d; type = %d; max = %d\n", value.value, _data[value.value]->type, _data.size()); assert((uint32)value.value < _data.size()); - return *(_dataCache->load(_scriptFile, _data[value.value]->offset)); + T* result = _dataCache->load(_scriptFile, _data[value.value]->offset); + return *result; } const char *getGlobalString(int index) const { -- cgit v1.2.3