Author: alink
Date: Thu May  1 19:48:53 2008
New Revision: 26289

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26289&view=rev
Log:
allow to overwrite alias. This may causes stupid alias bind, but otoh it also
allow to revert them.

Modified:
    trunk/src/menu_events.cpp

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=26289&r1=26288&r2=26289&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Thu May  1 19:48:53 2008
@@ -2124,8 +2124,7 @@
                                // disable the assert to allow alias to 
"command + args"
                                // the fonction assert_existence seems unused 
now
                                //assert_existence(to_cmd);
-                               command_alias_map_.insert(
-                                       
command_alias_map::value_type(cmd,to_cmd));
+                               command_alias_map_[cmd] = to_cmd;
                        }
                        //get all aliases of a command.
                        static const std::vector<std::string> get_aliases(const 
std::string& cmd)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to