Skip to content

Commit

Permalink
fix: leaderboard profiles open the correct one
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkittyy committed Jan 9, 2023
1 parent 8e4289c commit ce865ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/gui/leaderboard_modal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void leaderboard_modal::imdraw(fsm* sm) {
ImGui::SetTooltip("View player profile");
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);
if (ImGui::IsMouseClicked(0)) {
m_user_modal.reset(new user_modal(m_lvl.author));
m_user_modal.reset(new user_modal(score.user));
m_user_modal->open();
}
}
Expand Down

0 comments on commit ce865ad

Please sign in to comment.