allow to pass empty value to the "unit" debug command. Example: "unit name="
This commit is contained in:
parent
610b5dc284
commit
3086efda50
1 changed files with 2 additions and 3 deletions
|
@ -2894,8 +2894,7 @@ private:
|
|||
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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue