summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'players.c')
-rw-r--r--players.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/players.c b/players.c
index 4478812e8..6fb7e5cd5 100644
--- a/players.c
+++ b/players.c
@@ -180,10 +180,9 @@ void DrawPlayerFace(uint32 face, int color, int x, int y)
void InvalidatePlayerWindows(Player *p)
{
- uint pid = p->index;
- if ( (byte)pid == _local_player)
- InvalidateWindow(WC_STATUS_BAR, 0);
+ PlayerID pid = p->index;
+ if (pid == _local_player) InvalidateWindow(WC_STATUS_BAR, 0);
InvalidateWindow(WC_FINANCES, pid);
}