fix(UserSideBar): Moved to thread safe copy instead of reference

This commit is contained in:
Yimura 2021-02-05 12:59:19 +01:00
parent c6c7fbd90f
commit 4e5756a818
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -30,7 +30,7 @@ namespace big
bool friendInLobby = false; bool friendInLobby = false;
for (auto& pair : g_players) for (auto pair : g_players)
{ {
player player = pair.second; player player = pair.second;
@ -48,7 +48,7 @@ namespace big
if (!friendInLobby) if (!friendInLobby)
{ {
ImGui::TextColored({ 180,180,180,255 }, " No friends in current lobby."); ImGui::TextColored({ 180,180,180,255 }, "No friends in\ncurrent lobby.");
} }
ImGui::Indent(); ImGui::Indent();
@ -60,7 +60,7 @@ namespace big
{ {
ImGui::Unindent(); ImGui::Unindent();
for (auto& pair : g_players) for (auto pair : g_players)
{ {
player player = pair.second; player player = pair.second;