Fix bogus AdminNameOverlay Rider error (#35432)

This commit is contained in:
Pieter-Jan Briers 2025-02-24 05:37:54 +01:00 committed by deltanedas
parent 4fa80ae2d8
commit 11d7546672
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ internal sealed class AdminNameOverlay : Overlay
{
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), _antagLabelClassic, uiScale, _antagColorClassic);
}
else if (!classic && _filter.Contains(playerInfo.RoleProto.ID))
else if (!classic && _filter.Contains(playerInfo.RoleProto))
{
var label = Loc.GetString(playerInfo.RoleProto.Name).ToUpper();
var color = playerInfo.RoleProto.Color;