From 3c537cb3c92e288e83c08b8b5eaed4e2a6241f5e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 14 Jan 2007 23:48:11 +0000 Subject: [PATCH] Zone names get free'd, so don't assign a static string to it (it causes a const warning, too) svn-id: r25087 --- engines/parallaction/parallaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 781461f1e48..e2a7ded0c17 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -213,7 +213,7 @@ int Parallaction::init() { _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);