MP Lobby: fixup add_tooltip_data
Was constructing a new map member and not editing an existing one
This commit is contained in:
parent
4308baac80
commit
2f90512856
1 changed files with 1 additions and 3 deletions
|
@ -407,9 +407,7 @@ void add_tooltip_data(std::map<std::string, string_map>& map,
|
|||
const std::string& key,
|
||||
const std::string& label)
|
||||
{
|
||||
string_map item;
|
||||
item["tooltip"] = label;
|
||||
map.emplace(key, item);
|
||||
map[key]["tooltip"] = label;
|
||||
}
|
||||
|
||||
void modify_grid_with_data(tgrid* grid,
|
||||
|
|
Loading…
Add table
Reference in a new issue