[Orxonox-commit 2569] r7274 - code/branches/consolecommands3/src/libraries/core/command

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Aug 30 23:21:15 CEST 2010


Author: rgrieder
Date: 2010-08-30 23:21:15 +0200 (Mon, 30 Aug 2010)
New Revision: 7274

Modified:
   code/branches/consolecommands3/src/libraries/core/command/Executor.cc
Log:
MSVC build fix.

Modified: code/branches/consolecommands3/src/libraries/core/command/Executor.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/Executor.cc	2010-08-30 20:28:08 UTC (rev 7273)
+++ code/branches/consolecommands3/src/libraries/core/command/Executor.cc	2010-08-30 21:21:15 UTC (rev 7274)
@@ -45,8 +45,10 @@
         this->name_ = name;
     }
 
-    Executor::Executor(const Executor& other) : name_(other.name_), defaultValue_(other.defaultValue_)
+    Executor::Executor(const Executor& other) : name_(other.name_)
     {
+        for (int i = 0; i < MAX_FUNCTOR_ARGUMENTS; ++i)
+            defaultValue_[i] = other.defaultValue_[i];
         this->functor_ = other.functor_->clone();
     }
 




More information about the Orxonox-commit mailing list