Skip to content

Commit

Permalink
fix(Views/Player): not closing when the selected player left (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimura committed May 3, 2024
1 parent a7934ba commit d957658
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/players/view_player.cpp
Expand Up @@ -37,7 +37,8 @@ namespace big
{
name_appendage += std::format(" [{}]", "TRUST"_T);
}
strcpy(player_tab.name, std::format("{} ({}){}", current_player->get_name(), current_player->id(), name_appendage).c_str());
strcpy(player_tab.name,
std::format("{} ({}){}", current_player->get_name(), current_player->id(), name_appendage).c_str());

view::player_info();
ImGui::SameLine();
Expand All @@ -51,5 +52,7 @@ namespace big
ImGui::SameLine();
view::player_vehicle();
}
else
g_gui_service->set_selected(tabs::NONE);
}
}
}

0 comments on commit d957658

Please sign in to comment.