[Scummvm-cvs-logs] SF.net SVN: scummvm: [32277] scummvm/trunk/engines/m4/script.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon May 26 09:18:08 CEST 2008


Revision: 32277
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32277&view=rev
Author:   thebluegr
Date:     2008-05-26 00:18:06 -0700 (Mon, 26 May 2008)

Log Message:
-----------
Possible fix for bug #1949230: "M4: compilation error"

Modified Paths:
--------------
    scummvm/trunk/engines/m4/script.h

Modified: scummvm/trunk/engines/m4/script.h
===================================================================
--- scummvm/trunk/engines/m4/script.h	2008-05-26 05:17:21 UTC (rev 32276)
+++ scummvm/trunk/engines/m4/script.h	2008-05-26 07:18:06 UTC (rev 32277)
@@ -300,7 +300,8 @@
 	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 {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list