summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-31 19:49:31 +0000
committerrubidium <rubidium@openttd.org>2007-08-31 19:49:31 +0000
commita8033758e7bcae1f48ea3575385c3cfcd1c10213 (patch)
treef6def7bd1eed8c85c9f87cfb95d7403a910c61aa
parentdd60e3b7dd0756121c3634c113382fdb1ba1601d (diff)
downloadopenttd-a8033758e7bcae1f48ea3575385c3cfcd1c10213.tar.xz
(svn r11023) -Fix [FS#1150]: Switching players (using the cheat) crashed on Big Endian machines.
-rw-r--r--src/player.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h
index 6ecbbd7dc..dd87df7be 100644
--- a/src/player.h
+++ b/src/player.h
@@ -217,8 +217,8 @@ void InvalidatePlayerWindows(const Player *p);
void SetLocalPlayer(PlayerID new_player);
#define FOR_ALL_PLAYERS(p) for (p = _players; p != endof(_players); p++)
-VARDEF PlayerID _local_player;
-VARDEF PlayerID _current_player;
+VARDEF PlayerByte _local_player;
+VARDEF PlayerByte _current_player;
VARDEF Player _players[MAX_PLAYERS];
/* NOSAVE: can be determined from player structs */