From 71fb87f8fb0c4d3b4f41086ab2ae32e5e90551f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hinrichs?= Date: Wed, 12 Jul 2006 21:18:46 +0000 Subject: [PATCH] fixes bug #4190 (tab-completion should use the players name instead of the leader name) --- src/floating_textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floating_textbox.cpp b/src/floating_textbox.cpp index 8e75135848c..0f8ee847d91 100644 --- a/src/floating_textbox.cpp +++ b/src/floating_textbox.cpp @@ -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()) {