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 | e205c58ddc66684c24517cca5c94e41b767ae7d6 (patch) | |
tree | 7fff8ddf2fb4e34463baa3c967c238f272fe2720 /train_gui.c | |
parent | 3f3a14d24b95efe532e04c98ed5f568e97849fbb (diff) | |
download | openttd-e205c58ddc66684c24517cca5c94e41b767ae7d6.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 'train_gui.c')
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index 69f27665e..8acef3706 100644 --- a/train_gui.c +++ b/train_gui.c @@ -393,7 +393,7 @@ static void GenerateBuildList(Window *w) const RailVehicleInfo *rvi = RailVehInfo(eid); if (bv->filter.railtype != RAILTYPE_END && !HasPowerOnRail(e->railtype, bv->filter.railtype)) continue; - if (!IsEngineBuildable(eid, VEH_Train)) continue; + if (!IsEngineBuildable(eid, VEH_Train, _local_player)) continue; EngList_Add(&bv->eng_list, eid); if ((rvi->flags & RVI_WAGON) == 0) { |