int font_width = getFontWidth(pos->font);
type_name_node = getTreeInfoFromPos(node_first, entry_pos);
+ type_name_nr = entry_pos;
strcpy(name, type_name_node->name);
}
else
{
+ type_name_nr = user.nr;
+
strcpy(name, setup.player_name);
}
int last_user_nr = user.nr;
+ // change name of edited user in global list of user names
+ setString(&global.user_names[type_name_nr], name);
+
if (setup.multiple_users)
{
- type_name_nr = posTreeInfo(node);
-
- // change name of edited user in global list of user names
- setString(&global.user_names[type_name_nr], name);
-
// change name of edited user in local menu tree structure
setString(&node->name, name);
setString(&node->name_sorting, name);