(tab-completion should use the players name instead of the leader name)
This commit is contained in:
Jörg Hinrichs 2006-07-12 21:18:46 +00:00
parent 6223fbd91b
commit 71fb87f8fb

View File

@ -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()) {