mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 02:15:19 +00:00
fixes bug #4190
(tab-completion should use the players name instead of the leader name)
This commit is contained in:
parent
6223fbd91b
commit
71fb87f8fb
@ -136,7 +136,7 @@ namespace gui{
|
||||
}
|
||||
const unit_map::const_iterator leader = team_leader(n+1,units);
|
||||
if(leader != units.end()) {
|
||||
const std::string& name = leader->second.description();
|
||||
const std::string& name = teams[n].save_id();
|
||||
if( name.size() >= semiword.size() &&
|
||||
std::equal(semiword.begin(),semiword.end(),name.begin(),chars_equal_insensitive)) {
|
||||
if(matches.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user