build_vehicle_gui.c
changeset 5215 b8fb685df4c5
parent 5201 a4279a8884ea
child 5273 d9f707aa36a6
--- a/build_vehicle_gui.c	Sun Dec 03 13:40:16 2006 +0000
+++ b/build_vehicle_gui.c	Sun Dec 03 15:48:21 2006 +0000
@@ -290,7 +290,7 @@
 	 * 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: