[Scummvm-cvs-logs] SF.net SVN: scummvm: [25087] scummvm/trunk/engines/parallaction/ parallaction.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon Jan 15 00:48:15 CET 2007


Revision: 25087
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25087&view=rev
Author:   fingolfin
Date:     2007-01-14 15:48:11 -0800 (Sun, 14 Jan 2007)

Log Message:
-----------
Zone names get free'd, so don't assign a static string to it (it causes a const warning, too)

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/parallaction.cpp

Modified: scummvm/trunk/engines/parallaction/parallaction.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.cpp	2007-01-14 23:23:44 UTC (rev 25086)
+++ scummvm/trunk/engines/parallaction/parallaction.cpp	2007-01-14 23:48:11 UTC (rev 25087)
@@ -213,7 +213,7 @@
 	_yourself._zone._type = kZoneYou;
 
 	_yourself._zone._label._data0 = NULL;
-	_yourself._zone._name = "yourself";
+	_yourself._zone._name = strdup("yourself");
 
 	addNode(&_animations, &_yourself._zone._node);
 	_graphics = new Graphics(this);


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