diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-03 15:48:21 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-03 15:48:21 +0000 |
commit | 00e9e3e9e6fa790ad8fe1c915f12d47e803ab89e (patch) | |
tree | 7fff8ddf2fb4e34463baa3c967c238f272fe2720 /ship_cmd.c | |
parent | 7cc06c10d97cf6ef08a673480a50b69b7d2dacdf (diff) | |
download | openttd-00e9e3e9e6fa790ad8fe1c915f12d47e803ab89e.tar.xz |
(svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local
player, resulting in an empty vehicle purchase list. Specify the player
as an argument to IsEngineBuildable()
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index e25ec5425..b81ee457f 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -814,7 +814,7 @@ int32 CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) UnitID unit_num; Engine *e; - if (!IsEngineBuildable(p1, VEH_Ship)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); + if (!IsEngineBuildable(p1, VEH_Ship, _current_player)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |