Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 7:52:33 PM (14 years ago)
Author:
landauf
Message:

pushFunction() (which explicitly adds a new level to the console command stack) was not forwarded to ConsoleCommandManipulator

also fixed a bug which was caused by pushFunction() with a subsequent call to setFunction(…) because it may have unexpectedly changed the functor of the lower stack levels. now pushFunction() not only copyconstructs the executor, but also the Functor (with a clone() function)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.cc

    r7267 r7270  
    193193    {
    194194        Command command;
    195         command.executor_ = this->getExecutor();
     195        command.executor_ = this->executor_;
    196196        if (command.executor_)
    197             command.functor_ = this->getExecutor()->getFunctor();
     197            command.functor_ = this->executor_->getFunctor();
    198198
    199199        if (this->setFunction(executor, bForce))
     
    204204    {
    205205        Command command;
    206         command.executor_ = this->getExecutor();
     206        command.executor_ = this->executor_;
    207207        if (command.executor_)
    208             command.functor_ = this->getExecutor()->getFunctor();
     208            command.functor_ = this->executor_->getFunctor();
    209209
    210210        if (this->setFunction(functor, bForce))
Note: See TracChangeset for help on using the changeset viewer.