This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit c12ebb1c7bd3a65c02f6383a8b450e0947d01980
Author: krzys-h <krzy...@interia.pl>
Date:   Sat Oct 25 17:16:39 2014 +0200

    Fixed NewScript (#341)
---
 src/object/robotmain.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index f13ef8b..aa52791 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -4675,9 +4675,7 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, 
bool resetObject)
         
         if (line->GetCommand() == "NewScript" && !resetObject)
         {
-            char name[200];
-            strcpy(name, line->GetParam("name")->AsPath("").c_str()); //TODO: 
don't make this relative to ai/
-            
AddNewScriptName(line->GetParam("type")->AsObjectType(OBJECT_NULL), name);
+            
AddNewScriptName(line->GetParam("type")->AsObjectType(OBJECT_NULL), 
const_cast<char*>(line->GetParam("name")->AsPath("ai").c_str()));
             continue;
         }
         

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/colobot.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to