summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/players.cpp')
-rw-r--r--src/players.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/players.cpp b/src/players.cpp
index be83763d8..6301d2881 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -836,7 +836,9 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
* _local_player/_network_playas: what they play as
* cid = requested company/player of joining client */
Player *p;
+#ifdef ENABLE_NETWORK
uint16 cid = p2; // ClientID
+#endif /* ENABLE_NETWORK */
/* This command is only executed in a multiplayer game */
if (!_networking) return CMD_ERROR;