(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()
This commit is contained in:
2006-12-03 15:48:21 +00:00
parent 3f3a14d24b
commit e205c58ddc
8 changed files with 11 additions and 10 deletions

View File

@@ -290,7 +290,7 @@ static void GenerateBuildAircraftList(Window *w)
* when planes become obsolete and are removed */
sel_id = INVALID_ENGINE;
for (eid = AIRCRAFT_ENGINES_INDEX; eid < AIRCRAFT_ENGINES_INDEX + NUM_AIRCRAFT_ENGINES; eid++) {
if (IsEngineBuildable(eid, VEH_Aircraft)) {
if (IsEngineBuildable(eid, VEH_Aircraft, _local_player)) {
const AircraftVehicleInfo *avi = AircraftVehInfo(eid);
switch (bv->filter.acc_planes) {
case HELICOPTERS_ONLY: