summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-03 18:00:19 +0000
committerdarkvater <darkvater@openttd.org>2004-09-03 18:00:19 +0000
commit52f4a7eb1671c3eb581c5f1a176861165a095c6d (patch)
tree6d9b4576525c83721569fa44a6c44e696fc434f1 /player_gui.c
parent7b02cd3248650d0ece425b7640a9631f2d26c067 (diff)
downloadopenttd-52f4a7eb1671c3eb581c5f1a176861165a095c6d.tar.xz
(svn r151) -Fix: [1021566] Buy/Sell 25% share button is broke
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player_gui.c b/player_gui.c
index 823c6619d..6ecc845f0 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -484,8 +484,8 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
SET_DPARAM16(2, GetPlayerNameString((byte)w->window_number, 3));
dis = 0;
- if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 8;
- if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 9;
+ if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 9;
+ if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10;
w->disabled_state = dis;
DrawWindowWidgets(w);