fix(UserSideBar): Moved to thread safe copy instead of reference
This commit is contained in:
parent
c6c7fbd90f
commit
4e5756a818
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user