summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index 341c0e346..5b33dd1f2 100644
--- a/openttd.c
+++ b/openttd.c
@@ -799,7 +799,7 @@ void SwitchMode(int new_mode)
_generating_world = true;
// delete all players.
for (i = 0; i != MAX_PLAYERS; i++) {
- ChangeOwnershipOfPlayerItems(i, 0xff);
+ ChangeOwnershipOfPlayerItems(i, OWNER_SPECTATOR);
_players[i].is_active = false;
}
_generating_world = false;