Skip to content

Commit

Permalink
Update ui.cc (remember color)
Browse files Browse the repository at this point in the history
  • Loading branch information
REVRBE authored May 3, 2023
1 parent 6a0ad9d commit da3cf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bool loginFailed = false;
bool loginSuccessful = false;

void ui::renderSecondPrompt() {
std::string user_rank_local = globals.user_rank; // Create a local copy of the user rank
const std::string& user_rank_local = globals.user_rank;
ImGui::Text("Welcome, %s!", globals.user_name);
ImGui::Text("Rank: %s", user_rank_local.c_str()); // Use the local copy of the user rank

Expand Down

0 comments on commit da3cf73

Please sign in to comment.