diff options
author | Filippos Karapetis | 2008-05-26 07:18:06 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-05-26 07:18:06 +0000 |
commit | ba6f9ab9a889e0780a8e7fb9da20ada9610241c3 (patch) | |
tree | 1291c1f55519239f8e67b31a4fbef8c8c8215709 | |
parent | d94bfc66ad903b3c2cd677e1d481bca69f70eb12 (diff) | |
download | scummvm-rg350-ba6f9ab9a889e0780a8e7fb9da20ada9610241c3.tar.gz scummvm-rg350-ba6f9ab9a889e0780a8e7fb9da20ada9610241c3.tar.bz2 scummvm-rg350-ba6f9ab9a889e0780a8e7fb9da20ada9610241c3.zip |
Possible fix for bug #1949230: "M4: compilation error"
svn-id: r32277
-rw-r--r-- | engines/m4/script.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<T>(_scriptFile, _data[value.value]->offset)); + T* result = _dataCache->load<T>(_scriptFile, _data[value.value]->offset); + return *result; } const char *getGlobalString(int index) const { |