Skip to content

Commit

Permalink
Merge pull request #228 from Explooosion-code/patch-1
Browse files Browse the repository at this point in the history
Fix for player overhead names not disapearing.
  • Loading branch information
TomGrobbe committed Aug 29, 2020
2 parents 3dde396 + 99e20c8 commit 09dc09d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2317,10 +2317,11 @@ private async Task PlayerOverheadNamesControl()
bool enabled = MainMenu.MiscSettingsMenu.MiscShowOverheadNames && IsAllowed(Permission.MSOverheadNames);
if (!enabled)
{
for (var i = 0; i < 255; i++)
foreach (KeyValuePair<Player, int> gamerTag in gamerTags)
{
RemoveMpGamerTag(i);
RemoveMpGamerTag(gamerTag.Value);
}
gamerTags.clear();
}
else
{
Expand Down

0 comments on commit 09dc09d

Please sign in to comment.