mail[Wesnoth-commits] r27141 - /trunk/src/menu_events.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on June 13, 2008 - 05:16:
Author: alink
Date: Fri Jun 13 05:15:52 2008
New Revision: 27141

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27141&view=rev
Log:
allow to pass empty value to the "unit" debug command. Example: "unit name="

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=27141&r1=27140&r2=27141&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Fri Jun 13 05:15:52 2008
@@ -2894,11 +2894,10 @@
                const unit_map::iterator i = 
menu_handler_.current_unit(mouse_handler_);
                if (i == menu_handler_.units_.end()) return;
                const std::string data = get_data(1);
-               std::vector<std::string> parameters = utils::split(data, '=',
-                       utils::REMOVE_EMPTY | utils::STRIP_SPACES);
+               std::vector<std::string> parameters = utils::split(data, '=', 
utils::STRIP_SPACES);
                if (parameters.size() < 2)
                        return;
-               
+
                const std::string& name = parameters[0];
                const std::string& value = parameters[1];
 




Related Messages


Powered by MHonArc, Updated Fri Jun 13 11:02:30 2008