Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2015, 10:46:40 PM (10 years ago)
Author:
landauf
Message:

don't forget to register new commands (fixes 'alias' command)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/command/CommandExecutor.cc

    r10348 r10355  
    296296            // create a new console command with the given alias as its name
    297297            if (tokens.size() == 1)
    298                 new ConsoleCommand(tokens[0], executor);
     298                ConsoleCommandManager::registerCommand(new ConsoleCommand(tokens[0], executor));
    299299            else if (tokens.size() == 2)
    300                 new ConsoleCommand(tokens[0], tokens[1], executor);
     300                ConsoleCommandManager::registerCommand(new ConsoleCommand(tokens[0], tokens[1], executor));
    301301            else
    302302                orxout(user_error) << "\"" << alias << "\" is not a valid alias name (must have one or two words)." << endl;
Note: See TracChangeset for help on using the changeset viewer.