From e205c58ddc66684c24517cca5c94e41b767ae7d6 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 3 Dec 2006 15:48:21 +0000 Subject: (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() --- ship_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ship_cmd.c') 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); -- cgit v1.2.3-70-g09d2